* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #022a5d;
    color: #333;
}

/* 通用样式 */
.tycindex-container {
    width: 100%;
    overflow-x: hidden;
}

.tycindex-section {
    width: 100%;
    text-align: center;
    margin-bottom: 0;
}

.tycindex-main-title {
    color: #fec231;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    padding: 15px 0;
}

.tycindex-sub-title {
    color: #fec231;
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0;
}

.tycindex-center-img {
    display: block;
    margin: 0 auto;
}

/* 第一块：搜索块 */
.tycindex-search-container {
    background-color: #022a5d;
    padding: 15px 10px;
}

.tycindex-search-box {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 25px;
    padding: 5px 15px;
    height: 44px;
}

.tycindex-search-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    color: #999;
}

.tycindex-search-icon img {
    height: 20px;
    width: auto;
}

.tycindex-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    height: 100%;
}

.tycindex-search-btn {
    width: 85px;
    height: 40px;
    background: url('/m/images/tyc_sousuo.png') no-repeat center;
    background-size: contain;
    border: none;
    cursor: pointer;
}

/* 第二块：轮播图 */
.tycindex-slider-container {
    position: relative;
    background-color: #022a5d;
    padding: 10px 0 25px;
}

.tycindex-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.tycindex-slider-inner {
    display: flex;
    width: 200%;
    height: 100%;
    transition: transform 0.5s ease;
}

.tycindex-slide {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tycindex-slide-img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
}

.tycindex-slider-indicators {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.tycindex-slider-indicator {
    width: 20px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.tycindex-slider-indicator.active {
    background-color: #fec231;
}

/* 第三块：居中图片 - 修复间隙问题 */
.tycindex-section-three {
    padding: 15px;
    padding-bottom: 0px;
    margin-top: 20px;
    margin-bottom: 0 !important;
    display: block;
    overflow: hidden;
}

.tycindex-img-three {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    vertical-align: top;
}

/* 第四块：一行2张图片 - 彻底修复间隙问题 */
.tycindex-section-four {
    padding: 0px 15px; /* 上下padding改为0 */
    margin-top: 0;
    display: block;
    overflow: hidden;
    font-size: 0; /* 消除inline-block间隙 */
    line-height: 0; /* 消除行高影响 */
}

.tycindex-two-images {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}

.tycindex-img-four {
    width: calc(50% - 5px);
    height: auto;
    max-height: none;
    border-radius: 8px;
    object-fit: contain;
    display: block;
    vertical-align: top;
}

/* 第五块：图片列表 */
.tycindex-section-five {
    padding: 15px 0;
    margin-bottom: 40px;
}

.tycindex-products-title {
    color: #022a5d;
    font-size: 18px;
    font-weight: bold;
    padding: 0 15px 10px;
    padding-bottom: 25px;
}

/* 修改：tyc_dnsx.png 图片占比宽度50%，等比例缩放 */
.tycindex-products-title img,
.tycindex-products-title im {
    max-width: 50%; /* 占比宽度50% */
    width: 50%;
    height: auto;
    object-fit: contain;
}

.tycindex-products-container {
    overflow-x: auto;
    padding-left: 15px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tycindex-products-container::-webkit-scrollbar {
    display: none;
}

.tycindex-products-list {
    display: flex;
    width: max-content;
}

.tycindex-product-item {
    width: 70vw;
    margin-right: 15px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.tycindex-product-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.tycindex-product-info {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.tycindex-product-name-price {
    flex: 1;
}

.tycindex-product-name {
    font-size: 16px;
    font-weight: bold;
    color: #022a5d;
    margin-bottom: 5px;
}

.tycindex-product-price {
    color: #fec231;
    font-size: 18px;
    font-weight: bold;
}

.tycindex-product-arrow {
    width: 24px;
    height: 24px;
    background: url('/m/images/tyc_xiangyou.png') no-repeat center;
    background-size: contain;
}

/* 修改：查看更多图片占比通栏30%，等比例缩放 */
.tycindex-bottom-img{
    display: block;
    margin: 20px auto 0;
    max-width: 25%; /* 占比通栏30% */
    width: 25%;
    height: auto;
    object-fit: contain;
}

/* 第六块：居中图片 */
.tycindex-section-six {
    padding: 15px;
    margin-top: 40px;
}

/* 修改：tyc_dnhw.png 图片占比宽度50%，等比例缩放 */
.tycindex-img-six {
    width: 35%; /* 占比宽度50% */
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* 第七块：tab标签和产品列表 */
.tycindex-section-seven {
    padding-top: 10px;
}

.tycindex-tabs {
    display: flex;
    justify-content: center;
    background-color: white;
    /*border-bottom: 1px solid #eee;*/
}

.tycindex-tab {
    padding: 12px 20px;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tycindex-tab.active {
    color: #fec231;
    font-weight: bold;
}

.tycindex-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height:2px;
    background-color: #fec231;
}

.tycindex-products-list-full {
    padding: 15px;
    padding-bottom: 0px;
}

.tycindex-product-item-full {
    display: flex;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background-color: white;
}

.tycindex-product-img-full {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 6px;
    margin-right: 15px;
}

.tycindex-product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.tycindex-product-row {
    margin-bottom: 5px;
}

.tycindex-product-title {
    font-size: 16px;
    font-weight: bold;
    color: #022a5d;
}

.tycindex-product-tag {
    display: inline-block;
    background-color: #fff8e1;
    color: #f57c00;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 5px;
}

.tycindex-product-sales {
    font-size: 12px;
    color: #999;
}

.tycindex-product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.tycindex-product-current-price {
    color: #fec231;
    font-size: 18px;
    font-weight: bold;
}

.tycindex-product-original-price {
    color: #999;
    font-size: 14px;
    text-decoration: line-through;
    margin-left: 5px;
}

.tycindex-product-buy-btn {
    width: 50px;
    height: 30px;
    background: url('/m/images/tyc_goumai.png') no-repeat center;
    background-size: contain;
    border: none;
    cursor: pointer;
}

/* 第八块：居中图片 */
.tycindex-section-eight {
    padding: 15px;
    padding-top: 10px;
}

/* 修改：tyc_gengduo.png 图片占比页面30%，等比例缩放 */
.tycindex-img-eight{
    width: 25%; /* 占比页面30% */
    max-width: 25%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    cursor: pointer;
}

/* 第九块：店铺列表 */
.tycindex-section-nine {
    padding: 15px;
    position: relative;
}

/* 新增：查看更多信息提示 */
.tycindex-more-info {
    text-align: center;
    color: #fec231;
    font-size: 14px;

    font-weight: 500;
}

.tycindex-shops-title {
    color: #022a5d;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    margin-top: 45px;
}

.tycindex-shops-title img {
    max-width: 60%;
    height: auto;
}

.tycindex-shops-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* 修复店铺图片间隙问题 */
.tycindex-shop-item {
    width: calc(50% - 7px);
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    background-color: white;
    display: flex;
    flex-direction: column;
    padding-bottom: 10px;
}

.tycindex-shop-info {
    padding: 10px;
    padding-bottom: 5px;
    flex: 1;
}

.tycindex-shop-name {
    font-size: 16px;
    font-weight: bold;
    color: #022a5d;
    margin-bottom: 8px;
    text-align: left;
}

.tycindex-shop-address {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #666;


}
.tycindex-shop-address > span{
    display: inline-block;
    line-height: 30px;
    height: 30px;
    overflow: hidden;

}

.tycindex-location-icon {
    width: 12px;
    height: 12px;
    margin-right: 5px;
    background: url('/m/images/tyc_ditu.png') no-repeat center;
    background-size: contain;
}

/* 修复店铺图片填充问题 */
.tycindex-shop-img {
    width: 100%;
    height: 120px; /* 设置固定高度 */
    object-fit: cover; /* 改为cover确保填充 */
    cursor: pointer;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
}

/* 新增底部组件样式 - 改进版 */
.tycindex-footer {
    background-color: #022a5d;
    padding: 20px 15px 30px;
    margin-top: 10px;

}

.tycindex-footer-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    flex-direction: column;
}

.tycindex-footer-img {
    width: 35%;
    max-width: 180px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.tycindex-footer-img-caption {
    color: #fec231;
    font-size: 12px;
    margin-top: 5px;
    text-align: center;
}

.tycindex-footer-bottom {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    margin-top: 10px;
}

/* 底部图片容器 - 高兼容性方案 */
.tycindex-footer-image-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 0 1 auto;
    margin: 0 15px; /* 图片之间的间隙 */
    max-width: 120px;
}

.tycindex-footer-bottom-img {
    width: 100%;
    max-width: 100px;
    height: auto;
    object-fit: contain;
    display: block;
}

.tycindex-footer-bottom-caption {
    color: #fec231;
    font-size: 12px;
    margin-top: 5px;
    line-height: 1.4;
    text-align: center;
    width: 100%;
}

/* 通用图片样式 */
img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* 特殊处理的图片类 */
.tycindex-slide-img,
.tycindex-product-img,
.tycindex-product-img-full,
.tycindex-shop-img {
    object-fit: contain;
}

/* iOS Safari 特定修复 */
@supports (-webkit-touch-callout: none) {
    .tycindex-section-three {
        -webkit-margin-after-collapse: discard;
    }

    .tycindex-section-four {
        -webkit-margin-before-collapse: discard;
        margin-top: -1px; /* iOS 特定修复 */
    }

    .tycindex-shop-img {
        -webkit-transform: translateZ(0); /* 强制硬件加速，修复渲染问题 */
    }
}



.tycindex-section-seven {
    padding-top: 10px;
}

.tycindex-tabs {
    display: flex;
    justify-content: center;
    background-color: white;
    border-bottom: 2px solid #f0f0f0;
    padding: 0 15px;
}

.tycindex-tab {
    padding: 15px 25px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex: 1;
    text-align: center;
    border-bottom: 3px solid transparent;
}

.tycindex-tab:hover {
    color: #fec231;
}

.tycindex-tab.active {
    color: #fec231;
    font-weight: bold;
    border-bottom: 2px solid #fec231;
}

/* 产品列表切换效果 */
.tycindex-tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tycindex-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}