
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: url('/m/images/user_bg.png') repeat;
    color: #333;
    line-height: 1.5;
}

.szdindex-container {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 0px;
}

/* 搜索组件样式 */
.szdindex-search-component {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0 15px;
}

.szdindex-search-box {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    padding: 8px 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.szdindex-scan-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    cursor: pointer;
}

.szdindex-scan-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.szdindex-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px 0;
    font-size: 16px;
    background: transparent;
}

.szdindex-search-btn {
    background-color: #16adbf;
    color: white;
    border: none;
    border-radius: 15px;
    padding: 6px 15px;
    font-size: 14px;
    cursor: pointer;
}

/* 轮播图组件样式 - 高度自适应 */
.szdindex-carousel-component {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
}

.szdindex-carousel-wrapper {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.szdindex-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
}

.szdindex-carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.szdindex-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.szdindex-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.szdindex-carousel-dot.active {
    background-color: #16adbf;
}

/* 导航组件样式 */
.szdindex-nav-component {
    background-color: white;
    border-radius: 10px;
    margin: 20px;
    margin-top:-40px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
    z-index: 5;
    padding: 20px;
}

.szdindex-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.szdindex-nav-item {
    text-align: center;
}

.szdindex-nav-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 8px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f0f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.szdindex-nav-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.szdindex-nav-name {
    font-size: 14px;
    color: #333;
}

/* 双图组件样式 */
.szdindex-double-image-component {
    display: flex;
    margin: 20px;
    gap: 10px;
    margin-bottom: 20px;
}

.szdindex-image-item {
    flex: 1;
   /* height: 120px;*/
    border-radius: 8px;
    overflow: hidden;
}

.szdindex-image-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 产品展示组件样式 */
.szdindex-product-component {

    border-radius: 10px;
    /*  padding: 15px;
    background-color: white;
      margin-bottom: 20px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);*/
    margin: 20px;
}

.szdindex-product-tabs {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 15px;
}

.szdindex-product-tab {
    padding: 10px 20px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
}

.szdindex-product-tab.active {
    color: #16adbf;
    border-bottom: 2px solid #16adbf;
}

.szdindex-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.szdindex-product-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
   /* padding: 10px;*/
}

.szdindex-product-image {
    width: 100%;
    height: 120px;
    background-color: #e9e9e9;
    border-radius: 6px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    overflow: hidden;
}

.szdindex-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.szdindex-product-name {
    font-size: 14px;
    margin-bottom: 8px;
    height: 40px;
    overflow: hidden;
    margin-left: 10px;
    padding: 10px;
}

.szdindex-product-tag {
    display: inline-block;
    border: 1px solid #16adbf;
    color: #16adbf;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 12px;
    margin-bottom: 8px;  margin-left: 10px;
}

.szdindex-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;  margin-left: 10px;
    padding: 10px;
}

.szdindex-product-price {
    color: #ff5757;
    font-weight: bold;
    font-size: 16px;
}

.szdindex-cart-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.szdindex-cart-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.szdindex-footer {
    text-align: center;
    padding: 20px 0;
    color: #999;
    font-size: 14px;
}
.szdshq-container {
    max-width: 750px;
    margin: 0 auto;
    padding: 15px;
}

/* 搜索栏样式 */
.szdshq-search-bar {
    background-color: #eaf8f9;
    border-radius: 25px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(43, 180, 197, 0.3);
    margin-bottom: 20px;
}

.szdshq-search-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.szdshq-search-input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 15px;
    color: #333333;
    background: transparent;
}

.szdshq-search-input::placeholder {
    color: #999;
}

.szdshq-search-btn {
    background-color: #2bb4c5;
    color: white;
    font-size: 14px;
    padding: 6px 15px;
    border-radius: 15px;
    white-space: nowrap;
    margin-left: 10px;
    border: none;
    cursor: pointer;
}

/* 轮播图样式 - 修改：添加轮播图容器和切换功能 */
.szdshq-carousel {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: auto;
    position: relative;
}

.szdshq-carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.szdshq-carousel-item {
    min-width: 100%;
    height: 100%;
}

.szdshq-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.szdshq-carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.szdshq-carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.szdshq-carousel-indicator.active {
    background-color: white;
}

/* 公告组件样式 */
.szdshq-notice {
    background-color: white;
    border-radius: 10px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.szdshq-notice-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.szdshq-notice-text {
    font-size: 14px;
    color: #666;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 分类导航样式 */
.szdshq-categories-wrapper {
    width: 100%;
    margin-bottom: 20px;
    background: transparent;
}

.szdshq-categories {
    display: flex;
    justify-content: space-between;
    background: transparent;
    border-bottom: 1px solid #2db5c5;
    width: 100%;
}

.szdshq-category {
    text-align: center;
    font-size: 15px;
    color: #333333;
    padding: 15px 0;
    flex: 1;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.szdshq-category.active {
    color: #333333;
    font-weight: bold;
}

.szdshq-category.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 70%;
    height: 3px;
    background-color: #2bb4c5;
    border-radius: 2px;
}

/* 店铺列表样式 */
.szdshq-store-list {
    margin-bottom: 20px;
}

.szdshq-store-item {
    background-color: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
}

.szdshq-store-image {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.szdshq-store-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.szdshq-store-content {
    flex: 1;
}

.szdshq-store-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.szdshq-store-name {
    font-size: 16px;
    font-weight: bold;
    color: #333333;
}

.szdshq-store-badge {
    color: #ff6b6b;
    font-size: 12px;
    margin-left: 5px;
}

.szdshq-store-distance {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
}

.szdshq-distance-icon {
    width: 14px;
    height: 14px;
    margin-right: 4px;
}

.szdshq-store-address {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

/* 修改：折扣样式 */
.szdshq-store-discount {
    display: inline-flex;
    border: 1px solid #ffa22a;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
    font-size: 12px;
}

.szdshq-discount-left {
    background-color: #ffa22a;
    color: white;
    padding: 2px 6px;
}

.szdshq-discount-right {
    background-color: white;
    color: #ffa22a;
    padding: 2px 6px;
}

.szdshq-store-actions {
    display: flex;
    justify-content: flex-end;
}

.szdshq-btn {
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 13px;
    border: none;
    cursor: pointer;
    margin-left: 10px;
}

.szdshq-btn-nav {
    background-color: #f0f9fa;
    color: #2bb4c5;
    border: 1px solid #2bb4c5;
}

.szdshq-btn-pay {
    background-color: #2bb4c5;
    color: white;
}


/*用户中心*/
.szduser-container {
    padding: 15px;
}

.szduser-component {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 15px;
    overflow: hidden;
}

.szduser-componentwu {
    background-color: transparent;
    border-radius: 0px;
    box-shadow:none;

}

/* 用户信息组件 */
.szduser-profile {
    display: flex;
    padding: 20px 15px;
    align-items: center;
}

.szduser-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.szduser-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.szduser-info {
    flex: 1;
}

.szduser-nickname {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.szduser-profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.szduser-address {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}



.szduser-address img {
   /* width: 14px;*/
    height: 14px;
    margin-right: 5px;
}

.szduser-address span{
    color: #fff;
}

.szduser-actions {
    display: flex;
}

.szduser-action {
    display: flex;
    align-items: center;
    margin-left: 15px;
    font-size: 14px;
    color: #666;
}

.szduser-action img {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

/* 订单组件 */
.szduser-orders {
    padding: 15px;
}

.szduser-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.szduser-section-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
}

.szduser-section-title::before {
    content: "";
    display: inline-block;
    width: 2px;
    height: 16px;
    background-color: #16adbf;
    margin-right: 8px;
}

.szduser-more {
    font-size: 14px;
    color: #999;
}

.szduser-order-tabs {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.szduser-order-tab {
    flex: 1;
    padding: 10px 0;
}

.szduser-order-icon {
    width: 24px;
    height: 24px;
    margin: 0 auto 5px;
    background-color: #f0f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #16adbf;
}

.szduser-order-icon img{
    height: 24px;

}

.szduser-order-label {
    font-size: 12px;
    color: #666;
}

/* 财务组件 */
.szduser-finance {
    padding: 15px;
}

.szduser-finance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.szduser-finance-item {
    text-align: center;
    padding: 10px 0;
}

.szduser-finance-value {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #16adbf;
}

.szduser-finance-label {
    font-size: 12px;
    color: #666;
}

/* 本地生活组件 */
.szduser-local-life {
    padding: 15px;
    text-align: center;
    background: url('https://szd.xiangdd.shop/m/images/user_bg.png') repeat;
}

.szduser-local-image {
    width: 100%;

    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f0f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #16adbf;
    font-size: 14px;
}

.szduser-local-image img {
    width: 100%;

    object-fit: cover;
}

/* 服务组件 */
.szduser-services {
    padding: 15px;
}

.szduser-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.szduser-service {
    text-align: center;
}

.szduser-service-icon {
    width: 40px;
    height: 40px;

    border-radius: 50%;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.szduser-service-icon img{
    height: 40px;
}

.szduser-service-label {
    font-size: 12px;
    color: #333;
}