.hide {
    display: none !important;
}

.news-page {
    width: 100%;
    min-width: 0;
    background: #fff;
}

/* ========== Banner 区域（与 PC 端保持一致） ========== */
.m-news-hero {
    position: relative;
    height: 180px;
    margin: 12px 12px 0;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.m-news-hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 102, 255, 0.22), rgba(0, 102, 255, 0)),
        url("https://mstatic.ofpay.com/marketing/upload/f0656b38cc2c4e9a9387f898e48c9dad.png") center/cover no-repeat;
}

.m-news-hero-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.m-news-hero-title {
    margin: 0 0 8px;
    font-size: clamp(20px, 5vw, 28px);
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.m-news-hero-sub {
    margin: 0 0 16px;
    font-size: clamp(12px, 3.5vw, 14px);
    color: #fff;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.m-news-hero-btn {
    display: inline-block;
    width: 120px;
    height: 36px;
    border: 0;
    background: url(https://mstatic.ofpay.com/marketing/upload/9712ea36411743a1807291691d285d24.png) center/cover no-repeat;
    cursor: pointer;
}

/* ========== Tab 切换（参考 mobile/platform.html） ========== */
.m-news-switch {
    margin: 0 12px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.m-news-switch-tabs {
    display: flex;
}

.m-news-tab {
    flex: 1;
    position: relative;
    border: 0;
    background: transparent;
    font-size: 14px;
    color: #222;
    padding: 14px 0;
    cursor: pointer;
    font-family: inherit;
}

.m-news-tab.active {
    background: #0148A4;
    color: #fff;
    font-weight: 600;
}

/* 旧样式兼容 - 保留 */
.news-banner {
    height: 140px;
    background:
        linear-gradient(180deg, rgba(0, 102, 255, 0.22), rgba(0, 102, 255, 0)),
        url("https://images.unsplash.com/photo-1500514966906-fe245eea9344?auto=format&fit=crop&w=1400&q=80") center/cover no-repeat;
    border-radius: 0;
}

.news-wrap {
    padding: 0 12px;
    margin-top: 10px;
}

.news-tabs {
    display: flex;
    justify-content: center;
    gap: 26px;
    border-bottom: 1px solid #eceff5;
    padding-bottom: 8px;
}

.news-tab {
    position: relative;
    border: 0;
    background: transparent;
    font-size: 14px;
    color: #333;
    padding: 8px 0;
    cursor: pointer;
    font-family: inherit;
}

.news-tab.active {
    color: #1a6fd8;
    font-weight: 700;
}

.news-tab.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 42px;
    height: 3px;
    background: #1a6fd8;
    border-radius: 2px;
}

.news-panel {
    padding: 16px 12px 22px;
}

.news-panel-cards {
    background: #f2f2f2;
    margin-top: 14px;
    /* border-radius: 14px; */
    border: 1px solid #ededed;
}

.news-panel-inner {
    max-width: 720px;
    margin: 0 auto;
}

.news-panel-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #222;
    text-align: center;
}

.news-panel-title-list {
    margin-bottom: 10px;
}

.news-intro {
    margin: 10px auto 0;
    text-align: center;
    font-size: 12px;
    line-height: 1.8;
    color: #666;
    max-width: 560px;
}

.news-card-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.news-mini-card {
    background: #fff;
    padding: 14px 12px 12px;
    border-radius: 12px;
    border: 1px solid #eaeaea;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    min-height: 122px;
}

.news-mini-card h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    color: #222;
}

.news-mini-card p {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.65;
    color: #666;
}

.news-mini-card-foot {
    margin-top: 10px !important;
    font-size: 11px !important;
    color: #999 !important;
}

.news-panel-list {
    background: #f9f9f9;
    /* border-radius: 14px; */
    margin-top: 14px;
    border: 1px solid #ededed;
}

.news-article-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-article-item {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #e8e8e8;
}

.news-article-item:last-child {
    border-bottom: 0;
}

.news-article-thumb {
    overflow: hidden;
    border-radius: 12px;
}

.news-article-thumb img {
    width: 100%;
    height: 78px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.news-article-body {
    min-width: 0;
}

.news-article-title {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

.news-article-title a {
    color: #111;
    text-decoration: none;
    font-weight: 800;
}

.news-article-date {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #999;
}

.news-article-summary {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.75;
    color: #666;
}

/* 喜报卡片样式 */
.news-xb-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.news-xb-card:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-xb-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.news-xb-card-title {
    padding: 10px;
    font-size: 12px;
    color: #333;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #fafafa;
    border-top: 1px solid #eaeaea;
}

