/* 热门资料页面样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    background: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    padding-bottom: 3.5rem;
}

.page-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
}

/* 头部 */
.rmzl-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 3rem;
    border-bottom: 1px solid #eee;
}

.rmzl-back {
    font-size: 2rem;
    color: #333;
    text-decoration: none;
    width: 3rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
}

.rmzl-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
    text-align: center;
    flex: 1;
}

.rmzl-all {
    font-size: 0.875rem;
    color: #07c160;
    text-decoration: none;
    width: 3rem;
    text-align: right;
    flex-shrink: 0;
}

.rmzl-spacer {
    width: 3rem;
    flex-shrink: 0;
}

/* 搜索框 */
.search-box {
    display: flex;
    padding: 0.75rem 1rem;
    background: #fff;
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f0f5ff;
    border-radius: 2rem 0 0 2rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e8ff;
    border-right: none;
}

.search-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
    opacity: 0.5;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.125rem;
    color: #333;
    outline: none;
    padding: 0;
}

.search-input::placeholder {
    color: #ccc;
}

.search-btn {
    background: #07c160;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0 2rem 2rem 0;
    font-size: 1.125rem;
    cursor: pointer;
    white-space: nowrap;
}

.search-btn:active {
    opacity: 0.9;
}

/* 热门列表 */
.hot-list {
    background: #fff;
    padding: 0.5rem 0;
}

.hot-item {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

.hot-item:active {
    background: #f9f9f9;
}

.hot-item:last-child {
    border-bottom: none;
}

.hot-rank {
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: bold;
    color: #999;
    background: #f0f0f0;
    border-radius: 0.25rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.hot-rank.rank-1 {
    background: #ff4d4f;
    color: #fff;
}

.hot-rank.rank-2 {
    background: #ff7a45;
    color: #fff;
}

.hot-rank.rank-3 {
    background: #ffa940;
    color: #fff;
}

.hot-content {
    flex: 1;
    min-width: 0;
}

.hot-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-meta {
    font-size: 0.75rem;
    color: #999;
}

.hot-tag {
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.6875rem;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.hot-tag.hot {
    background: #fff2f0;
    color: #ff4d4f;
    border: 1px solid #ffccc7;
}

.hot-tag.new {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

/* 查看更多 */
.view-more {
    padding: 1rem;
    text-align: center;
    background: #fff;
    margin-top: 0.5rem;
}

.view-more-link {
    color: #999;
    font-size: 0.875rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.view-more-link:active {
    color: #07c160;
}

/* 响应式 */
@media (max-width: 320px) {
    html {
        font-size: 14px;
    }
}

@media (min-width: 321px) and (max-width: 375px) {
    html {
        font-size: 15px;
    }
}

@media (min-width: 376px) and (max-width: 414px) {
    html {
        font-size: 16px;
    }
}

@media (min-width: 415px) {
    html {
        font-size: 18px;
    }
}
