/* 首页资讯列表（现代化单列：渐变圆点 + 标题，hover 位移高亮） */
.news-simple {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-simple-li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 10px;
    border-radius: 8px;
    transition: background .2s ease;
}

.news-simple-li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 3px;
    background: linear-gradient(135deg, #2f88ff, #6aa8ff);
    box-shadow: 0 0 0 3px rgba(47, 136, 255, .12);
    flex-shrink: 0;
}

.news-simple-li:hover {
    background: #f6f9ff;
}

.news-simple-li + .news-simple-li {
    border-top: 1px dashed #eef2f8;
}

.news-simple-link {
    flex: 1;
    min-width: 0;
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: color .2s ease;
}

.news-simple-link:hover {
    color: #1677ff;
}

.news-simple-time {
    flex-shrink: 0;
    font-size: 12px;
    color: #a0a8b3;
    white-space: nowrap;
}

/* 最新商铺：两列卡片网格 */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.shop-card {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #eef2f8;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    text-decoration: none;
    transition: all .2s ease;
}

.shop-card-name {
    min-width: 0;
    font-size: 13px;
    color: #374151;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    transition: color .2s ease;
}

.shop-card:hover {
    border-color: #c9dcff;
    box-shadow: 0 4px 14px rgba(47, 136, 255, .1);
    transform: translateY(-1px);
}

.shop-card:hover .shop-card-name {
    color: #1677ff;
}

/* 首页容器加宽到 1280px（覆盖公共 style.css 的 1080px，与切换城市页一致） */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0;
}

.index-page {
    padding-top: 16px;
}

/* 面包屑 */
.crumb {
    font-size: 13px;
    color: #5b6b7f;
    margin-bottom: 14px;
}

.crumb a {
    color: #2f88ff;
    text-decoration: none;
}

.crumb a:hover {
    text-decoration: underline;
}

.crumb .sep {
    margin: 0 6px;
    color: #c0ccdd;
}

.crumb .cur {
    color: #1f2d3d;
}

/* 列表头（当前栏目信息） */
.list-head {
    background: linear-gradient(135deg, #2f88ff, #1d39c4);
    color: #fff;
    border: none;
    padding: 20px 22px;
}

.list-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.list-sub {
    font-size: 12px;
    opacity: 0.85;
    margin-top: 6px;
}

/* 两栏布局：左栏栏目导航，右栏信息流 */
.index-grid {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 16px;
    align-items: start;
}

/* 侧栏无内容时：隐藏左栏，主内容占满整行 */
.index-grid.no-side {
    grid-template-columns: 1fr;
}
.index-grid.no-side .index-side {
    display: none;
}

.panel {
    background: #fff;
    border: 1px solid #e8eef7;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 16px;
}

.index-side .panel {
    padding:18px 10px;
}

.panel-title {
    font-size: 16px;
    font-weight: 700;
    color: #1d39c4;
    border-left: 4px solid #2f88ff;
    padding-left: 10px;
    margin-bottom: 12px;
}



/* 热门城市标签云 */
.tag-cloud {
    line-height: 2;
}

.tag-cloud a {
    display: inline-block;
    padding: 3px 12px;
    margin: 0 8px 8px 0;
    background: #f0f6ff;
    color: #2f88ff;
    border-radius: 999px;
    font-size: 13px;
    text-decoration: none;
}

.tag-cloud a:hover {
    background: #e6f0ff;
}

/* 信息列表 */
.news-list {
    list-style: none;
}

.news-list .news-li {
    display: block;
    border-bottom: 1px dashed #eef2f8;
}

.news-list .news-li:last-child {
    border-bottom: none;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 0;
}

.news-item.is-top {
    background: #fff1f0;
    border-radius: 6px;
    padding:8px;
}

/* 城市/栏目/标签 meta 行 */
.news-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    padding: 0 0 10px 2px;
    color: #999999;
    font-size: 12px;
}

.news-tags .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #999999;
    text-decoration: none;
}

.news-tags .meta-item svg {
    display: block;
    flex-shrink: 0;
}

.news-tags .meta-item:hover {
    color: #2f88ff;
}

.top-badge {
    font-style: normal;
    font-size: 12px;
    color: #ff4d4f;
    background: #fff;
    border: 1px solid #ff4d4f;
    border-radius: 4px;
    padding: 0 5px;
    flex-shrink: 0;
}

.news-link {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #333;
    font-size: 14px;
    text-decoration: none;
}

.news-link:hover {
    color: #2f88ff;
}

.news-meta {
    color: #9aa7b5;
    font-size: 12px;
    white-space: nowrap;
}

/* 置顶信息（带缩略图布局，与栏目页 info-list 一致） */
.info-list {
    list-style: none;
}

.info-li {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px dashed #eef2f8;
}

.info-li:last-child {
    border-bottom: none;
}

.info-thumb {
    width: 130px;
    height: 92px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f4fb;
}

.info-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.info-body {
    flex: 1;
    min-width: 0;
}

.info-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-link {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #333;
    font-size: 15px;
    text-decoration: none;
}

.info-link:hover {
    color: #2f88ff;
}

.badge {
    font-style: normal;
    font-size: 12px;
    padding: 1px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

.badge.top {
    color: #ff4d4f;
    background: #fff1f0;
    border: 1px solid #ffd6d6;
}

.info-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    margin-top: 8px;
    color: #999999;
    font-size: 12px;
}

.info-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #999999;
    text-decoration: none;
}

.info-meta .meta-item svg {
    display: block;
    flex-shrink: 0;
}

.info-meta .meta-item:hover {
    color: #2f88ff;
}

.info-meta .meta-time {
    color: #9aa7b5;
}

.empty {
    color: #9aa7b5;
    font-size: 13px;
}

/* 首页友情链接 */
.friend-links { color: #666666;font-size: 12px; padding: 0px 10px;}

.friend-link-item {
    display: inline; font-size: 12px; color: #666666; padding: 0px 10px;
}
.friend-link-item:hover {  color: #2563eb; }

/* 手机端自适应 */
@media (max-width: 768px) {
    /* 覆盖桌面 .container{padding:0}，避免内容贴边 */
    .container {
        padding: 0 12px;
    }
    .index-page {
        padding-top: 10px;
    }
    .index-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .panel {
        padding: 14px 16px;
        border-radius: 10px;
        margin-bottom: 12px;
    }
    .index-side .panel{
        padding: 0;
        border-radius: 0px;
        margin-bottom: 12px;
        border:none;
        background: none;
    }
    .index-side .panel{
        margin-bottom: 0;
    }
    .panel-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    .list-head {
        padding: 16px;
    }
    .list-title {
        font-size: 17px;
    }
    .list-sub {
        font-size: 12px;
        margin-top: 5px;
    }
    .cat-item {
        padding: 11px 12px;
    }
    .cat-name {
        font-size: 16px;
    }
    .cat-children {
        margin-top: 7px;
        padding-top: 7px;
        gap: 8px;
    }
    .cat-children a {
        font-size: 13px;
        padding: 4px 12px;
        margin: 0;
    }
    .tag-cloud a {
        font-size: 14px;
        padding: 5px 14px;
        margin: 0 8px 8px 0;
    }
    .news-item {
        gap: 8px;
        padding: 13px 0;
    }
    .news-link {
        font-size: 15px;
        line-height: 1.4;
        /* 手机端标题最多两行，避免单行截断看不全 */
        white-space: normal;
        display: -webkit-box;
        line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    .news-meta {
        font-size: 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .top-badge {
        font-size: 12px;
        padding: 0 6px;
        display: none;
    }
    .info-li {
        gap: 10px;
        padding: 12px 0;
    }
    .info-thumb {
        width: 100px;
        height: 74px;
    }
    .info-link {
        font-size: 15px;
        line-height: 1.4;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    .info-meta {
        font-size: 12px;
        gap: 4px 10px;
    }
    .empty {
        font-size: 14px;
        padding: 20px 0;
    }
    .news-simple-li {
        padding: 11px 8px;
        align-items: flex-start;
    }
    .news-simple-li::before {
        margin-top: 7px;
    }
    .news-simple-link {
        font-size: 14px;
        line-height: 1.5;
        white-space: normal;
        text-overflow: unset;
        overflow: visible;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    .news-simple-time {
        font-size: 12px;
    }
    .shop-grid {
        gap: 8px;
    }
    .shop-card {
        padding: 10px;
    }
    .badge.top{
        display: none;
    }
    .info-meta .meta-time{
        display: none;
    }
    .friend-links{
        display: none;
    }
}
