/* ===== 红色故事更多页面 - Red Stories Page ===== */
/* 设计风格：红色文化 + 现代杂志风 + 书卷气 */

.rs-page {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #F5F0E8;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    display: block !important;
    flex-direction: unset !important;
}

/* 隐藏滚动条但保留滚动功能 */
.rs-page::-webkit-scrollbar {
    display: none;
}

/* ===== 顶部标题栏 ===== */
.rs-page .status-bar {
    all: unset !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 20px !important;
    padding-top: 8px !important;
    height: 44px !important;
    background: #AE100D !important;
    background-image: none !important;
    color: #FFF !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    z-index: 101;
    box-sizing: border-box !important;
}

.rs-page .status-bar::before,
.rs-page .status-bar::after {
    display: none !important;
}

.rs-header {
    background: #AE100D;
    padding: 0 16px;
    padding-bottom: 8px;
}

.rs-header-inner {
    display: flex;
    align-items: center;
    height: 48px;
    gap: 12px;
}

.rs-back-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

.rs-back-btn:active {
    background: rgba(255,255,255,0.3);
}

.rs-back-btn svg {
    width: 18px;
    height: 18px;
}

.rs-header-title {
    font-size: 18px;
    font-weight: 700;
    color: #FFF;
    letter-spacing: 1px;
}

.rs-header-decor {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.4), transparent);
}

/* ===== 顶部主题横幅 ===== */
.rs-banner {
    position: relative;
    background: #AE100D;
    padding: 24px 20px 28px;
    overflow: hidden;
    min-height: 200px;
}

.rs-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,215,0,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.rs-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.rs-banner-content {
    position: relative;
    z-index: 1;
}

.rs-banner-quote {
    font-size: 11px;
    color: rgba(255,215,0,0.9);
    letter-spacing: 3px;
    margin-bottom: 8px;
    font-weight: 500;
}

.rs-banner-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    line-height: 1;
}

.rs-back-btn.rs-back-inline {
    width: 36px;
    height: 36px;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    flex-shrink: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.rs-back-btn.rs-back-inline:active {
    background: rgba(255,255,255,0.15) !important;
}

.rs-back-btn.rs-back-inline svg {
    width: 22px;
    height: 22px;
    display: block;
}

.rs-banner-title {
    font-size: 24px;
    font-weight: 800;
    color: #FFF;
    line-height: 1;
    margin: 0;
    letter-spacing: 2px;
}

.rs-banner-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin-bottom: 16px;
}

.rs-banner-stats {
    display: flex;
    gap: 24px;
}

.rs-stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rs-stat-num {
    font-size: 20px;
    font-weight: 800;
    color: #FFD700;
    font-family: 'Georgia', serif;
}

.rs-stat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
}

/* 装饰性五角星 */
.rs-star-decor {
    position: absolute;
    opacity: 0.1;
}

.rs-star-decor svg {
    fill: #FFD700;
}

.rs-star-1 {
    top: 20px;
    right: 30px;
    width: 40px;
    height: 40px;
}

.rs-star-2 {
    bottom: 30px;
    right: 80px;
    width: 24px;
    height: 24px;
    opacity: 0.08;
}

/* ===== 搜索栏 ===== */
.rs-search-wrap {
    padding: 16px 20px 0;
}

.rs-search-box {
    display: flex;
    align-items: center;
    background: #FFF;
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 2px 12px rgba(139,0,0,0.06);
    border: 1px solid rgba(174,16,13,0.08);
}

.rs-search-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    flex-shrink: 0;
    opacity: 0.5;
}

.rs-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
    background: transparent;
}

.rs-search-input::placeholder {
    color: #999;
}

.rs-search-clear {
    width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    background: #E0E0E0;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
}

.rs-search-clear.visible {
    display: flex;
}

.rs-search-clear svg {
    width: 12px;
    height: 12px;
    fill: #FFF;
}

/* ===== 分类标签栏 ===== */
.rs-tabs-wrap {
    padding: 20px 20px 16px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

.rs-tabs-wrap::-webkit-scrollbar {
    display: none;
}

.rs-tabs {
    display: flex;
    gap: 8px;
    position: relative;
}

.rs-tab {
    flex-shrink: 0;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #8B5A2B;
    background: #FFF;
    border: 1px solid rgba(139,90,43,0.15);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    white-space: nowrap;
}

.rs-tab.active {
    background: linear-gradient(135deg, #AE100D 0%, #C41E3A 100%);
    color: #FFF;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(174,16,13,0.3);
    transform: translateY(-1px);
}

.rs-tab:active {
    transform: scale(0.97);
}

/* ===== 精选推荐区域 ===== */
.rs-featured-wrap {
    padding: 20px;
}

.rs-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.rs-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #2C1810;
}

.rs-section-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, #AE100D, #C41E3A);
    border-radius: 2px;
}

.rs-section-badge {
    font-size: 10px;
    color: #AE100D;
    background: rgba(174,16,13,0.08);
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.rs-featured-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #FFF;
    box-shadow: 0 8px 24px rgba(139,0,0,0.12);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.rs-featured-card:active {
    transform: scale(0.98);
}

.rs-featured-img-wrap {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.rs-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.rs-featured-card:hover .rs-featured-img {
    transform: scale(1.05);
}

.rs-featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

.rs-featured-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #5C3300;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 1px;
}

.rs-featured-info {
    padding: 16px;
}

.rs-featured-title {
    font-size: 18px;
    font-weight: 700;
    color: #2C1810;
    line-height: 1.4;
    margin-bottom: 8px;
}

.rs-featured-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rs-featured-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rs-featured-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.rs-mini-tag {
    font-size: 11px;
    color: #AE100D;
    background: rgba(174,16,13,0.08);
    padding: 2px 8px;
    border-radius: 4px;
}

.rs-featured-views {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #999;
}

.rs-featured-views svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.rs-featured-play-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(174,16,13,0.2);
    font-size: 12px;
    color: #AE100D;
    font-weight: 500;
}

.rs-featured-play-hint i {
    font-size: 13px;
}

/* ===== 故事列表区域 ===== */
.rs-list-wrap {
    padding: 0 20px 100px;
}

.rs-story-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rs-story-card {
    display: flex;
    background: #FFF;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(139,0,0,0.06);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(139,90,43,0.05);
}

.rs-story-card:active {
    transform: scale(0.98);
    box-shadow: 0 4px 16px rgba(139,0,0,0.12);
}

.rs-story-img-wrap {
    width: 120px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.rs-story-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 110px;
}

.rs-story-duration {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0,0,0,0.6);
    color: #FFF;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
}

.rs-story-content {
    flex: 1;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.rs-story-title {
    font-size: 15px;
    font-weight: 700;
    color: #2C1810;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rs-story-desc {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.rs-story-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rs-story-cat {
    font-size: 11px;
    color: #8B5A2B;
    background: rgba(139,90,43,0.08);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.rs-story-views {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: #AAA;
}

.rs-story-views svg {
    width: 12px;
    height: 12px;
}

.rs-story-play-hint {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(174,16,13,0.15);
    font-size: 11px;
    color: #AE100D;
    font-weight: 500;
}

.rs-story-play-hint i {
    font-size: 12px;
}

/* ===== 空状态 ===== */
.rs-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #999;
}

.rs-empty-icon {
    width: 80px;
    height: 80px;
    opacity: 0.3;
    margin-bottom: 16px;
}

.rs-empty-text {
    font-size: 14px;
    color: #999;
}

/* ===== 加载状态 ===== */
.rs-loading {
    display: flex;
    justify-content: center;
    padding: 40px;
}

.rs-loading-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(174,16,13,0.1);
    border-top-color: #AE100D;
    border-radius: 50%;
    animation: rs-spin 0.8s linear infinite;
}

@keyframes rs-spin {
    to { transform: rotate(360deg); }
}

/* ===== 详情弹窗样式（内置轻量详情页） ===== */
.rs-detail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    overflow: hidden;
    overscroll-behavior: contain;
    touch-action: none;
}

.rs-detail-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.rs-detail-sheet {
    width: 100%;
    max-width: 100%;
    max-height: 80%;
    background: #FFF;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    flex-shrink: 0;
}

.rs-detail-overlay.visible .rs-detail-sheet {
    transform: translateY(0);
}

.rs-detail-handle {
    width: 40px;
    height: 4px;
    background: #E0E0E0;
    border-radius: 2px;
    margin: 10px auto 0;
    flex-shrink: 0;
}

.rs-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid #F0F0F0;
    flex-shrink: 0;
}

.rs-detail-title {
    font-size: 16px;
    font-weight: 700;
    color: #2C1810;
    flex: 1;
    padding-right: 12px;
}

.rs-detail-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F5F5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
}

.rs-detail-close svg {
    width: 16px;
    height: 16px;
}

.rs-detail-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.rs-detail-body::-webkit-scrollbar {
    width: 4px;
}

.rs-detail-body::-webkit-scrollbar-thumb {
    background: #DDD;
    border-radius: 2px;
}

.rs-detail-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 16px;
}

.rs-detail-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.rs-detail-content {
    font-size: 14px;
    color: #444;
    line-height: 1.8;
}

.rs-detail-content p {
    margin-bottom: 12px;
    text-indent: 2em;
}

/* ===== 入场动画 ===== */
@keyframes rs-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rs-animate-in {
    animation: rs-fade-in-up 0.4s ease-out forwards;
}

.rs-featured-card.rs-animate-in {
    animation-delay: 0.1s;
    opacity: 0;
}

.rs-story-card:nth-child(1) { animation-delay: 0.15s; }
.rs-story-card:nth-child(2) { animation-delay: 0.2s; }
.rs-story-card:nth-child(3) { animation-delay: 0.25s; }
.rs-story-card:nth-child(4) { animation-delay: 0.3s; }
.rs-story-card:nth-child(5) { animation-delay: 0.35s; }
.rs-story-card:nth-child(6) { animation-delay: 0.4s; }
.rs-story-card:nth-child(n+7) { animation-delay: 0.45s; }
