.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;
}

.soft-download-btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transform: translateZ(0);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease, opacity .16s ease;
}

.soft-download-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.42) 45%, transparent 70%);
    transform: translateX(-120%);
    transition: transform .48s ease;
}

.soft-download-btn::after {
    content: "";
    width: 0;
    height: 0;
    border-radius: 50%;
    border: 0 solid currentColor;
    opacity: 0;
    transition: width .16s ease, height .16s ease, border-width .16s ease, opacity .16s ease;
}

.soft-download-btn-primary {
    box-shadow: 0 6px 14px rgba(26, 173, 25, .22);
}

.soft-download-btn-secondary {
    box-shadow: 0 5px 12px rgba(75, 85, 99, .08);
}

.soft-download-btn:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
}

.soft-download-btn:hover::before,
.soft-download-btn.is-loading::before {
    transform: translateX(120%);
}

.soft-download-btn:active {
    transform: translateY(1px) scale(.98);
    box-shadow: 0 2px 7px rgba(26, 173, 25, .18);
}

.soft-download-btn.is-loading {
    pointer-events: none;
    opacity: .88;
}

.soft-download-btn.is-loading::after {
    width: 12px;
    height: 12px;
    border-width: 2px;
    border-right-color: transparent;
    opacity: 1;
    animation: softDownloadSpin .7s linear infinite;
}

@keyframes softDownloadSpin {
    to {
        transform: rotate(360deg);
    }
}

/* 热门推荐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);
    }
}

/* 详情卡片收藏按钮 */
.soft-favorite-btn {
    width: 52px;
    height: 42px;
    flex: 0 0 auto;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 1px solid #e9edf4;
    border-radius: 8px;
    background: #f8fafc;
    color: #8b97a6;
    font-size: 9px;
    line-height: 1;
    cursor: pointer;
    transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}

.soft-favorite-btn i {
    font-size: 15px;
}

.soft-favorite-btn.is-active {
    color: #f59e0b;
    border-color: #fde3a7;
    background: #fffaf0;
}

.soft-favorite-btn:active {
    transform: scale(.96);
}

.soft-favorite-btn:focus-visible {
    outline: 2px solid #1aad19;
    outline-offset: 2px;
}

.soft-favorite-btn:disabled {
    cursor: wait;
    opacity: .65;
}

/* 详情页截图轮播：样式必须位于外部 CSS，避免 Vue 挂载时忽略 style 节点。 */
.soft-cover-card {
    padding: 0 0 10px !important;
    overflow: hidden !important;
}

.soft-cover-title {
    margin: 0 0 10px !important;
    color: #111827 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.soft-cover-carousel {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    background: #c7cbd3 !important;
    cursor: grab !important;
    touch-action: pan-y !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

.soft-cover-carousel.is-dragging {
    cursor: grabbing !important;
}

.soft-cover-track {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    transform: translate3d(0, 0, 0);
    transition: transform 260ms cubic-bezier(.22, .61, .36, 1);
    will-change: transform !important;
}

.soft-cover-slide {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    background: #c7cbd3 !important;
}

.soft-cover-bg {
    position: absolute !important;
    inset: -18px !important;
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    filter: blur(16px) !important;
    opacity: .58 !important;
    transform: scale(1.08) !important;
}

.soft-cover-slide img {
    position: absolute !important;
    z-index: 1 !important;
    top: 0 !important;
    left: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    background: transparent !important;
    cursor: zoom-in !important;
    transform: none !important;
    -webkit-user-drag: none !important;
}

.soft-cover-slide.is-portrait img {
    object-fit: contain !important;
}

.soft-cover-nav {
    position: absolute !important;
    z-index: 20 !important;
    top: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    margin-top: -18px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(31, 41, 55, .52) !important;
    color: #fff !important;
    font-size: 24px !important;
    line-height: 36px !important;
    text-align: center !important;
}

.soft-cover-nav.prev {
    left: 12px;
}

.soft-cover-nav.next {
    right: 12px;
}

.soft-cover-dots {
    position: relative !important;
    z-index: 3 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    height: 28px !important;
    margin: 0 !important;
    padding: 8px 12px 0 !important;
    box-sizing: border-box !important;
    background: #fff !important;
    line-height: 1 !important;
    pointer-events: auto !important;
}

.soft-cover-dot {
    position: relative !important;
    display: block !important;
    flex: 0 0 auto !important;
    width: 10px !important;
    min-width: 10px !important;
    max-width: 10px !important;
    height: 10px !important;
    min-height: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
    background: #cbd5e1 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: width 180ms ease, background-color 180ms ease, transform 180ms ease !important;
    -webkit-tap-highlight-color: transparent !important;
}

.soft-cover-dot.active {
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    background: #0f766e !important;
    transform: scaleY(1.05) !important;
}

.soft-cover-dot:focus-visible {
    outline: 2px solid rgba(15, 118, 110, .35) !important;
    outline-offset: 3px !important;
}

@media (max-width: 480px) {
    .soft-cover-card {
        margin-top: 10px !important;
    }

    .soft-cover-nav {
        width: 32px !important;
        height: 32px !important;
        margin-top: -16px !important;
        line-height: 32px !important;
    }
}

/* 详情页操作区与板块导航 */
.soft-action-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.soft-action-row .soft-action-btn,
.soft-action-row #feedback-btn,
.soft-action-row #service-btn {
    position: static;
    top: auto;
    right: auto;
    transform: none;
    width: 100%;
    height: 30px;
    min-width: 0;
    margin: 0;
    padding: 0 5px;
    box-sizing: border-box;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 9px;
    background: #f3f7fb;
    box-shadow: none;
    color: #344054;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    animation: none;
}

.soft-action-row .soft-action-btn i { font-size: 16px; }
.soft-action-row .soft-favorite-btn.is-active { color: #1aad19; background: #e9f8e9; }
.soft-action-row .soft-action-btn:focus-visible,
.soft-section-nav a:focus-visible,
.soft-expand-btn:focus-visible { outline: 2px solid #1aad19; outline-offset: 2px; }

.soft-section-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin: 12px 15px 0;
    padding: 0 8px;
    border-radius: 10px 10px 0 0;
    background: #fff;
    box-shadow: 0 -1px 6px rgba(30, 45, 60, .05);
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    font-weight: 700;
}
.soft-section-nav::-webkit-scrollbar { display: none; }
.soft-section-nav a {
    flex: 1 0 auto;
    position: relative;
    padding: 12px 5px 13px;
    color: #667085;
    font-size: 13px;
    text-align: center;
    text-decoration: none;
}
.soft-section-nav a::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 4px;
    height: 3px;
    border-radius: 3px;
    background: transparent;
}
.soft-section-nav a.is-active {
    color: #1aad19;
    font-weight: 700;
}
.soft-section-nav a.is-active::after { background: #1aad19; }
.soft-section-nav a:hover,
.soft-section-nav a:active { color: #1aad19; }
.soft-section-nav + .rj_card { margin-top: 0 !important; border-radius: 0 0 10px 10px; }

#soft-screenshots, #soft-hot-recommend, #soft-introduction, #soft-guide { scroll-margin-top: 12px; }
.soft-heading-icon {
    display: inline-block;
    width: 1.35em;
    margin-right: 3px;
    color: #1aad19;
    text-align: center;
    font-size: .9em;
    vertical-align: baseline;
}
.soft-collapsible .rj-content { min-height: 0; }
.soft-collapsible-content.is-collapsed { max-height: 220px; overflow: hidden; }
.soft-expand-btn {
    display: block;
    width: 100%;
    margin: 4px 0 0;
    padding: 9px 0;
    border: 0;
    background: transparent;
    color: #1aad19;
    font-size: 13px;
    cursor: pointer;
}
.soft-expand-btn[hidden] { display: none; }
.soft-expand-btn i { margin-left: 4px; }

.soft-scroll-controls {
    position: fixed;
    right: max(14px, calc(50vw - 324.5px));
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    z-index: 550;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}
.soft-scroll-controls.is-visible { opacity: 1; pointer-events: auto; }
.soft-scroll-controls button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    color: #8b95a3;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.soft-scroll-controls button:focus-visible { outline: 2px solid #1aad19; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    .soft-cover-track,
    .soft-cover-dot,
    .soft-scroll-controls {
        transition: none !important;
    }
}
