* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}
html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    background-color: #f7f8fa;
    font-family: Source Han Sans CN-Regular, Source Han Sans CN;
}
img{
    display: block;
}
.text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.text-ellipsis-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.header {
    width: 100%;
    height: 0.44rem;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.18rem;
    font-weight: 500;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 100;
}
.banner {
    width: 100%;
    background: #ddd;
    overflow: hidden;
    position: relative;
}
.banner-wrapper {
    width: 100%;
    white-space: nowrap;
    font-size: 0;
    transition: transform 0.3s ease;
}
.banner-item {
    display: inline-block;
    width: 100%;
    vertical-align: top;
    overflow: hidden;
}
.banner-item img {
    width: 100%;
    height: auto;
    display: block;
    border: 0;
}
.banner-dots {
    position: absolute;
    bottom: 0.1rem;
    left: 50%;
    transform: translateX(-50%);
    /* display: flex; */
    gap: 0.06rem;
    z-index: 10;
    display: none;  /* 隐藏白点 */
}
.banner-dot {
    width: 0.06rem;
    height: 0.06rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
}
.banner-dot.active {
    width: 0.16rem;
    border-radius: 0.03rem;
    background: #fff;
}
.notice-bar {
    margin: 0.1rem;
    background: #fff;
    display: flex;
    align-items: center;
    height: 0.3rem;
    overflow: hidden;
    border-radius: 0.04rem;
}
.notice-tag-container {
    position: relative;
    background: #3A45D5;
    height: 100%;
    padding: 0 0.1rem;
    display: flex;
    align-items: center;
    margin-right: 0.18rem;
    color: #fff;
    font-size: 0.12rem;
    font-weight: 500;
    flex-shrink: 0;
}
.notice-tag-container::after {
    content: '';
    position: absolute;
    right: -0.06rem;
    top: 0;
    width: 0.2rem;
    height: 100%;
    background: #3A45D5;
    transform: skewX(-20deg);
    z-index: 1;
}
.notice-tag-text {
    position: relative;
    z-index: 2;
}
.notice-content {
    flex: 1;
    font-size: 0.14rem;
    color: #39383E;
    margin-right: 0.1rem;
    font-weight: 500;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}
.notice-text {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: scroll-left 15s linear infinite;
}
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}
.notice-content:hover .notice-text {
    animation-play-state: paused;
}
.notice-arrow {
    color: #667282;
    font-size: 0.14rem;
    margin-right: 0.1rem;
}
.town-grid {
    padding: 0.1rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.08rem;
    margin: 0 0.1rem 0.1rem;
    background: #fff;
}
.town-item {
    display: block;
    text-decoration: none;
    font-size: 0.14rem;
    text-align: center;
    border-radius: 0.04rem;
    font-weight: 500;
    height: 0.24rem;
    background: #E3E5FF;
    color: #3A45D5;
    line-height: 0.24rem;
    overflow: hidden;
}
.news-section {
    background: transparent;
    padding-bottom: 0.2rem;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.1rem;
}
.section-title {
    font-size: 0.12rem;
    font-weight: bold;
    color: #39383E;
    position: relative;
}
.section-title span {
    color: #3A45D5;
}
.news-list {
    display: flex;
    flex-direction: column;
    background: #fff;
    margin: 0.12rem 0.1rem;
    border-radius: 0.04rem;
}
.news-item {
    padding: 0.1rem;
    display: flex;
    align-items: flex-start;
}
.news-info {
    flex: 1;
    margin-right: 0.1rem;
    overflow: hidden;
}
.news-title {
    font-size: 0.14rem;
    font-weight: bold;
    color: #39383E;
    display: flex;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.news-tag {
    background: #4a69ff;
    color: #fff;
    font-size: 0.1rem;
    padding: 0 0.04rem;
    border-radius: 50%;
    margin-right: 0.06rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.14rem;
    height: 0.14rem;
    flex-shrink: 0;
}
.news-desc {
    font-size: 0.14rem;
    font-weight: 400;
    color: #39383E;
    margin: 0.1rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.news-meta {
    font-size: 0.12rem;
    font-weight: 400;
    color: #B3B9C0;
    display: flex;
    justify-content: space-between;
}
.news-meta span:first-child{
    width: 0.62rem;
    margin-right: 0.05rem;
}
.news-meta span:last-child{
    flex: 1;
    display: flex;
    justify-content: end;
}
.news-thumb {
    width: 1.1rem;
    height: 0.75rem;
    border-radius: 0.04rem;
    overflow: hidden;
    flex-shrink: 0;
}
.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* 底部导航样式 */
.footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.5rem;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
    box-sizing: border-box;
}
.footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    color: #999;
    text-decoration: none;
    font-size: 0.1rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.footer-item.active {
    color: #3A45D5;
}
.footer-icon {
    width: 0.24rem;
    height: 0.24rem;
    margin-bottom: 0.02rem;
    /* fill removed as img tags don't support it */
}
/* 占位，防止内容被底部遮挡 */
.footer-placeholder {
    height: 0.5rem;
    width: 100%;
}

.text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.header {
    width: 100%;
    height: 0.44rem;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.18rem;
    font-weight: 500;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #eee;
}
.news-list {
    display: flex;
    flex-direction: column;
    background: #fff;
    margin: 0.12rem 0.1rem;
    border-radius: 0.04rem;
}
.news-item {
    padding: 0.1rem;
    display: flex;
    align-items: flex-start;
}
.news-info {
    flex: 1;
    margin-right: 0.1rem;
    overflow: hidden;
}
.news-title {
    font-size: 0.15rem;
    font-weight: bold;
    color: #39383E;
    margin-bottom: 0.06rem;
    display: flex;
    align-items: center;
}
.news-title .text-ellipsis {
    flex: 1;
}
.news-tag {
    background: #4a69ff;
    color: #fff;
    font-size: 0.1rem;
    padding: 0 0.04rem;
    border-radius: 50%;
    margin-right: 0.06rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.14rem;
    height: 0.14rem;
    flex-shrink: 0;
}
.news-desc {
    font-size: 0.13rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 0.1rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.news-meta {
    font-size: 0.11rem;
    color: #999;
    display: flex;
    justify-content: space-between;
}
.news-meta span:first-child{
    margin-right: 0.05rem;
}
.news-meta span:last-child{
    flex: 1;
    display: flex;
    justify-content: flex-end;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.news-thumb {
    width: 1.1rem;
    height: 0.75rem;
    border-radius: 0.04rem;
    overflow: hidden;
    flex-shrink: 0;
}
.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}