/* ========== 首页样式 ========== */

/* 顶部固定导航栏 */
.home-header-sticky {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    z-index: 100;
    border-bottom: 1px solid var(--border-light);
}

/* 顶部搜索栏 */
.home-top-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--bg-primary);
}

.search-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    padding: 8px 12px;
    border-radius: 20px;
    color: var(--text-tertiary);
    font-size: 14px;
    cursor: pointer;
}

.search-box svg {
    width: 16px;
    height: 16px;
}

.message-icon {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
}

.message-icon svg {
    width: 24px;
    height: 24px;
}

.message-icon .badge {
    position: absolute;
    top: 4px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--error-color);
    color: white;
    font-size: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

/* Tab导航 */
.top-tabs {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    background: var(--bg-primary);
}

.top-tabs::-webkit-scrollbar {
    display: none;
}

.top-tab {
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: all var(--transition-fast);
    padding: 4px 0;
}

.top-tab.active {
    color: var(--text-primary);
    font-weight: 600;
}

.top-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* 金刚区 */
.kingkong-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    padding: 16px;
    background: var(--bg-primary);
}

.kingkong-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.kingkong-item:active {
    transform: scale(0.95);
}

.kingkong-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-sm);
}

.kingkong-label {
    font-size: 12px;
    color: var(--text-primary);
}

/* 轮播Banner */
.banner-carousel {
    position: relative;
    margin: 12px 16px;
    border-radius: 12px;
    overflow: hidden;
    height: 140px;
}

.banner-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.banner-slide.active {
    opacity: 1;
}

.banner-content {
    color: white;
}

.banner-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.banner-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 12px;
}

.banner-btn {
    display: inline-block;
    padding: 6px 16px;
    background: white;
    color: #333;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.banner-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    width: 16px;
    border-radius: 3px;
    background: white;
}

/* 页面内容区域 */
.page-content {
    min-height: 100%;
    padding-bottom: 20px;
    background: var(--bg-secondary);
}

/* Tab内容区域 */
.follow-content,
.recommend-content,
.vip-content,
.finance-content,
.school-tab-content,
.circle-tab-content,
.mustread-tab-content,
.discover-tab-content {
    min-height: calc(100vh - 180px);
    background: var(--bg-secondary);
}

/* 发现网格项 */
.discover-grid-item {
    transition: all 0.2s ease;
}

.discover-grid-item:active {
    transform: scale(0.95);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 圈子卡片 */
.circle-card {
    transition: all 0.2s ease;
}

.circle-card:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
