/* 首页样式 */

.home-banner {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: #eee;
}

.home-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
}

.dot.active {
    width: 12px;
    border-radius: 3px;
    background-color: #fff;
}

.quick-entry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 16px 12px;
    background-color: var(--card-bg);
    margin-bottom: 12px;
}

.entry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.entry-item:active {
    transform: scale(0.96);
    opacity: 0.8;
}

.entry-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    padding: 10px;
}

.entry-name {
    font-size: 12px;
    color: var(--text-main);
    font-weight: 500;
}

/* 推荐专区 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    position: relative;
    padding-left: 10px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 14px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-more {
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 12px;
    background-color: var(--bg-color);
}

.recommend-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.recommend-img {
    width: 100%;
    padding-bottom: 100%; /* 1:1 Aspect Ratio */
    background-size: cover;
    background-position: center;
    position: relative;
}

.recommend-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: var(--primary-color);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
}

.recommend-tag.hot {
    background-color: var(--danger-color);
}

.recommend-info {
    padding: 10px;
}

.recommend-name {
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recommend-price {
    font-size: 16px;
}

/* 最新动态 */
.news-list {
    background-color: var(--card-bg);
    padding: 0 16px;
    margin-bottom: 12px;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.news-item:last-child {
    border-bottom: none;
}

.news-tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    margin-right: 8px;
    flex-shrink: 0;
}

.news-content {
    font-size: 13px;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
