.rj_search {
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 10px 15px;
    background-color: #edfcfa;
}

.rj_search form input[type="text"] {
    flex: 1; 
    display: flex; 
    align-items: center; 
    background: #fff; 
    border: 1px solid #1aad19; 
    border-radius: 20px; 
    padding: 0 15px;
}

.rj_search form input[type="text"] .weui-icon-search {
    color: #1aad19; 
    font-size: 20px; 
    display: flex; 
    align-items: center; 
    height: 100%;
}

.rj_search form input[type="text"] input {
    flex: 1; 
    border: none !important; 
    background: transparent; 
    padding: 12px 10px; 
    outline: none !important; 
    font-size: 14px; 
    height: 100%; 
    box-shadow: none !important; 
    -webkit-appearance: none; 
    -moz-appearance: none; 
    appearance: none; 
    caret-color: #1aad19;
}

.rj_search form input[type="submit"] {
    background: #1aad19; 
    color: white; 
    border: none; 
    border-radius: 20px; 
    padding: 10px 20px; 
    cursor: pointer; 
    font-size: 14px;
}

/*.rj_search a {*/
/*    color: #1aad19; */
/*    text-decoration: none; */
/*    font-size: 14px; */
/*    border: 1px solid #1aad19; */
/*    border-radius: 15px; */
/*    padding: 5px 10px; */
/*    display: inline-block;*/
/*}*/

#feedback-btn {
    position: fixed; 
    right: 5px; 
    top: calc(50% - 25px);  /* 调整位置，便于计算 */
    width: 50px; 
    height: 50px; 
    background-color: #ff6b6b; 
    border-radius: 50%; 
    color: white; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    cursor: pointer; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.2); 
    z-index: 9999;
}

#feedback-modal {
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.5); 
    z-index: 10000; 
    justify-content: center; 
    align-items: center;
}

#feedback-modal form {
    background-color: white; 
    border-radius: 10px; 
    /*width: 100%; */
    max-width: 600px; 
    padding: 20px; 
    position: relative;
}

#feedback-modal form select, 
#feedback-modal form textarea, 
#feedback-modal form input[type="text"] {
    width: 90%; 
    padding: 10px; 
    border: 1px solid #ddd; 
    border-radius: 5px;
}

#feedback-modal form textarea {
    height: 120px;
}

#feedback-modal form button {
    padding: 10px 20px; 
    border: none; 
    border-radius: 5px; 
    cursor: pointer;
}

#feedback-modal form button[type="button"] {
    background-color: #ccc;
}

#feedback-modal form button[type="submit"] {
    background-color: #1aad19; 
    color: white;
}

.rj_card {
    /* 样式已在主题CSS中定义 */
}

.rj_card .weui-panel__hd {
    border-bottom: 1px solid #999;
    font-size: 17px;
    padding-bottom: 5px;
    margin-bottom: 5px;
}

.rj_card .weui-panel__bd {
    overflow: hidden;
}

/* 热门推荐Swiper样式 */
.swiper-container-hot {
    width: 100%;
    padding: 0 10px;
    overflow: hidden;
}

.swiper-wrapper {
    display: flex;
    align-items: stretch;
    flex-direction: row;
}

.swiper-slide {
    width: 80px !important;
    flex-shrink: 0;
    margin-right: 10px;
    height: auto;
}

.recommend-item {
    text-decoration: none;
    color: #333;
    overflow: hidden;
    display: block;
    width: 80px;
}

.recommend-image-container {
    position: relative;
    display: block;
    width: 80px;
    height: 80px;
}

.recommend-item img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}

.new-tag {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 1px 5px;
    border-radius: 0 10px 0 6px;
    box-shadow: 0 1px 2px rgba(255, 71, 87, 0.3);
    line-height: 1.3;
}

.recommend-title,
.recommend-tip,
.recommend-meta {
    box-sizing: border-box;
    width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recommend-title {
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.recommend-tip, .recommend-meta {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.recommend-meta {
    display: flex;
    justify-content: space-between;
}

.flag-tag {
    font-weight: bold;
    padding: 1px 6px;
    border-radius: 8px;
    margin: 0 2px;
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    height: 18px;
    box-sizing: border-box;
}

.weui-panel__bd {
    overflow: hidden;
}

.weui-panel__bd .swiper-container-hot {
    overflow: visible;
}

/* 确保热门推荐横向滚动 */
.swiper-container-hot .swiper-wrapper {
    display: flex !important;
    flex-direction: row !important;
}

/* 确保热门推荐容器正确显示 */
.rj_card .weui-panel__bd {
    overflow-x: auto;
    overflow-y: hidden;
        padding-bottom: 15px;
}

/* 确保热门推荐部分正确显示 */
.swiper-container-hot {
    overflow: hidden !important;
}

.swiper-wrapper {
    display: flex !important;
    flex-direction: row !important;
}

/* 特别针对热门推荐面板 */
.rj_card .weui-panel__bd {
    overflow: hidden !important;

}

/* 确保推荐容器正确显示 */
#hot-recommendations {
    width: 100%;
    overflow: hidden;
}

/* 确保热门推荐容器正确显示 */
#hot-recommendations-container {
    overflow: hidden;
}

/* 悬浮反馈按钮动画效果 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

#feedback-btn:hover {
    animation: pulse 2s infinite;
}

#service-btn:hover {
    animation: service-pulse 2s infinite;
}

/* h3标签样式优化 */
h3 {
    margin: 15px 0; /* 上下间距15px */
    padding: 5px 0; /* 内边距 */
    font-size: 16px; /* 字体大小 */
    font-weight: bold; /* 字体粗细 */
    color: #333; /* 字体颜色 */
    line-height: 1.4; /* 行高 */
    background-color: #fafafa;
}

/* 客服弹窗样式 */
.customer-service-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.customer-service-box {
    background-color: white;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    padding: 0;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.customer-service-header {
    background-color: #1aad19;
    color: white;
    padding: 15px 20px;
    border-radius: 10px 10px 0 0;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.customer-service-body {
    padding: 20px;
}

.customer-service-item {
    margin-bottom: 20px;
}

.customer-service-item:last-child {
    margin-bottom: 0;
}

.customer-service-item h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.customer-service-item h3 i {
    margin-right: 8px;
    color: #1aad19;
}

.customer-service-content {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.customer-service-number {
    margin: 10px 0;
    padding: 8px;
    background-color: white;
    border-radius: 5px;
    border-left: 3px solid #1aad19;
}

.customer-service-link {
    display: inline-block;
    background-color: #1aad19;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.customer-service-link:hover {
    background-color: #179c15;
    text-decoration: none;
}

.customer-service-footer {
    padding: 15px 20px;
    text-align: center;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
    border-radius: 0 0 10px 10px;
}

.customer-service-close-btn {
    background-color: #1aad19;
    color: white;
    border: none;
    padding: 10px 100px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.customer-service-close-btn:hover {
    background-color: #179c15;
}

.service-contact-info {
    text-align: center;
    margin: 15px 0;
}

.contact-method {
    display: inline-block;
    margin: 10px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
    min-width: 100px;
}

/* 客服按钮样式 */
#service-btn {
    position: fixed;
    right: 5px;
    top: calc(50% + 35px);  /* 位于反馈按钮下方，间距30px */
    width: 50px;
    height: 50px;
    background-color: #1aad19;
    border-radius: 50%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 9999;
}

#service-btn:hover {
    animation: service-pulse 2s infinite;
}

@keyframes service-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(26, 173, 25, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(26, 173, 25, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(26, 173, 25, 0);
    }
}