/* ═══════════════════════════════════════
   动态页 · 多方案 Banner + Galaxy
   ═══════════════════════════════════════ */

/* ── Banner 方案选择器（极简 / Galaxy） ── */
.banner-picker {
    position: fixed;
    left: 1rem;
    bottom: 5.5rem;
    z-index: 900;
    padding: 3px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-radius: 999px;
    box-shadow: none;
}

.banner-picker__btns {
    display: inline-flex;
    gap: 0.125rem;
}

.banner-picker__btn {
    padding: 0.4rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    background: transparent;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.banner-picker__btn.is-active,
.banner-picker__btn.is-active:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

@media (hover: hover) and (pointer: fine) {
    .banner-picker__btn:hover {
        color: var(--primary-dark);
        background: rgba(17, 214, 187, 0.08);
    }

    .banner-picker__btn.is-active:hover {
        color: #fff;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    }
}

@media (max-width: 767px) {
    .banner-picker {
        left: 0.75rem;
        bottom: 4.5rem;
    }

    .banner-picker__btn {
        font-size: 0.6875rem;
        padding: 0.35rem 0.75rem;
    }
}

/* ── 导航：向下隐藏 / 向上显示 ── */
.page-news .header {
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.38s ease;
    will-change: transform;
}

.page-news .header.header--hidden {
    transform: translateY(-100%);
    box-shadow: none;
}

.page-news.header-is-hidden .news-tabs {
    top: 0;
}

.page-news .breadcrumb {
    position: relative;
    z-index: 5;
    background: transparent;
    padding: 0.625rem 0;
}

.page-news .breadcrumb-list {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-lighter);
}

.page-news .breadcrumb-item a {
    color: var(--text-light);
}

.page-news .breadcrumb-item a:hover {
    color: var(--primary-dark);
}

/* ── Hero 基础 ── */
.news-cine {
    position: relative;
    min-height: clamp(18rem, 62vh, 34rem);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2rem 1rem 4rem;
    margin-top: calc(-1 * var(--header-height));
    padding-top: calc(var(--header-height) + 2.5rem);
    text-align: center;
    background: #fff;
}

.news-cine__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.news-cine__fx {
    display: none;
    position: absolute;
    inset: 0;
}

.news-cine__grid {
    display: none;
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(17, 214, 187, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 214, 187, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, black 10%, transparent 100%);
}

.news-cine__galaxy {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 0;
}

.news-galaxy-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* ── 方案 E：极简 ── */
.news-cine--e {
    background: #fff;
}

.news-cine--e .news-cine__fx--beams {
    display: block;
    background: radial-gradient(ellipse 90% 60% at 50% -20%, rgba(17, 214, 187, 0.14), transparent 60%);
}

/* ── 方案 F：Galaxy 黑底 ── */
.news-cine--f {
    background: #000;
}

.news-cine--f .news-cine__galaxy {
    display: block;
}

.news-cine--f .news-cine__fx,
.news-cine--f .news-cine__grid {
    display: none !important;
}

@keyframes news-aurora-a {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    100% { transform: translate(3%, -2%) rotate(3deg) scale(1.06); }
}

@keyframes news-aurora-b {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-4%, 3%) rotate(-4deg); }
}

@keyframes news-grid-drift {
    from { background-position: 0 0; }
    to { background-position: 48px 48px; }
}

@keyframes news-mesh-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes news-spot-pulse {
    from { opacity: 0.75; transform: scale(1); }
    to { opacity: 1; transform: scale(1.05); }
}

.news-cine__inner {
    position: relative;
    z-index: 1;
    max-width: 48rem;
}

/* 浅色 Banner 文字（A/C/E 默认） */
.news-cine__tag {
    display: inline-block;
    margin-bottom: 1.125rem;
    padding: 0.35rem 0.875rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--primary-dark);
    background: rgba(17, 214, 187, 0.12);
    border-radius: 999px;
    border: 1px solid rgba(17, 214, 187, 0.2);
    animation: news-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.news-cine .page-title {
    font-size: clamp(2.5rem, 7vw, 4.25rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.08;
    color: #1a1a1a;
    margin-bottom: 1rem;
    animation: news-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

.news-cine__accent {
    background: linear-gradient(120deg, var(--primary-dark), var(--primary-color), var(--primary-light), var(--primary-color));
    background-size: 250% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: news-shimmer-text 5s linear infinite;
}

@keyframes news-shimmer-text {
    to { background-position: 250% center; }
}

.news-cine .page-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.75;
    color: var(--text-light);
    max-width: 30rem;
    margin-inline: auto;
    animation: news-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

/* 深色 Banner 文字（Galaxy） */
.news-cine--f .page-title {
    color: #ffffff;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
}

.news-cine--f .page-subtitle {
    color: rgba(255, 255, 255, 0.78);
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.45);
}

.news-cine--f .news-cine__tag {
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

.news-cine--f .news-cine__accent {
    background: linear-gradient(120deg, #4ce4d0, var(--primary-color), #ffffff, var(--primary-light));
    background-size: 250% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@keyframes news-rise {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── 内容面板 ── */
.news-panel {
    position: relative;
    z-index: 2;
    margin-top: -2rem;
    background: #fff;
    border-radius: 1.25rem 1.25rem 0 0;
    box-shadow: none;
    border-top: none;
}

/* ── Tab ── */
.news-tabs {
    position: sticky;
    top: var(--header-height);
    z-index: 50;
    padding: 1.125rem 0 0.75rem;
    background: #fff;
    transition: top 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.news-tabs .container {
    display: flex;
    justify-content: center;
}

/* ── 内容 ── */
.news-content {
    padding: 2.25rem 0 5rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content.active.is-entering {
    animation: news-tab-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes news-tab-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-news .news-card,
.page-news .activity-card {
    box-shadow: none;
}

/* ── 新闻卡片 · 简约图文 ── */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
    min-height: 12rem;
}

#newsGrid:not(:empty) {
    min-height: 0;
}

.page-news {
    scroll-behavior: auto;
}

.news-empty {
    grid-column: 1 / -1;
    margin: 2rem 0;
    text-align: center;
    color: #64748b;
    font-size: 0.9375rem;
}

.news-loading {
    grid-column: 1 / -1;
    margin: 2rem 0;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9375rem;
}

.news-grid.is-fetching,
.activities-list.is-fetching {
    opacity: 0.72;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.news-content.is-fetching .pagination {
    opacity: 0.72;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.news-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border-radius: 0.875rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: none;
    transition: border-color 0.22s ease;
}

.news-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f4f6f8;
}

.news-card__media::after {
    content: none;
}

.news-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card__pill {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #fff;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 999px;
    box-shadow: none;
}

.news-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem 1.375rem 1.375rem;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.625rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.02em;
}

.news-date {
    font-variant-numeric: tabular-nums;
}

.news-category {
    color: var(--primary-dark);
}

.news-category::before {
    content: "·";
    margin-right: 0.625rem;
    color: rgba(0, 0, 0, 0.2);
}

.news-card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    transition: color 0.2s ease;
}

.news-card-title a {
    color: inherit;
    text-decoration: none;
}

a.news-card__media {
    display: block;
    color: inherit;
    text-decoration: none;
}

.news-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin-top: auto;
}

.news-card-actions .news-card-link {
    margin-top: 0;
}

.news-card-link--external {
    color: #64748b;
}

.news-card-excerpt {
    font-size: 0.875rem;
    color: #737373;
    margin-bottom: 0.875rem;
    line-height: 1.65;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.8125rem;
    text-decoration: none;
    margin-top: auto;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

@media (hover: hover) and (pointer: fine) {
    .news-card-link {
        transition: color 0.2s ease;
    }

    .news-card-link:hover {
        color: var(--primary-color);
    }
}

@media (hover: none), (pointer: coarse) {
    .news-card-link:active {
        opacity: 0.72;
    }
}

/* 头条：桌面端左图右文 */
.news-card--featured {
    border-color: rgba(17, 214, 187, 0.2);
    box-shadow: none;
}

.news-card--featured .news-card__media {
    aspect-ratio: 16 / 11;
}

.news-card--featured .news-card-content {
    padding: 1.625rem 1.75rem 1.75rem;
    background: #fff;
}

.news-card--featured .news-card-title {
    font-size: clamp(1.125rem, 2.2vw, 1.375rem);
    line-height: 1.4;
}

.news-card--featured .news-card-excerpt {
    -webkit-line-clamp: 4;
    font-size: 0.9375rem;
    color: #737373;
}

@media (hover: hover) and (pointer: fine) {
    .news-card:hover {
        border-color: rgba(17, 214, 187, 0.45);
        box-shadow: none;
        transform: none;
    }

    .news-card:hover .news-card__media img {
        transform: scale(1.02);
    }

    .news-card:hover .news-card-title {
        color: var(--primary-dark);
    }
}

@media (min-width: 768px) {
    .news-card--featured {
        display: grid;
        grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
        align-items: stretch;
        min-height: 17.5rem;
    }

    .news-card--featured .news-card__media {
        aspect-ratio: auto;
        min-height: 100%;
    }

    .news-card--featured .news-card-content {
        justify-content: center;
        padding: 2.25rem 2.5rem 2.25rem 2rem;
    }
}

/* 滚动入场 */
.news-reveal {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: no-preference) {
    .news-reveal:not(.is-in) {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* ── 活动卡片 · 与新闻图文卡统一 ── */
.activities-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.activity-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border-radius: 0.875rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: none;
    transition: border-color 0.22s ease;
}

.activity-card__media {
    position: relative;
    display: flex;
    align-items: flex-end;
    aspect-ratio: 2.15 / 1;
    padding: 1.25rem 1.375rem;
    overflow: hidden;
}

.activity-card__media--register {
    background: linear-gradient(145deg, #0eb89e 0%, #11d6bb 42%, #064e45 100%);
}

.activity-card__media--referral {
    background: linear-gradient(145deg, #4ce4d0 0%, #11d6bb 48%, #0a967f 100%);
}

.activity-card__media--franchise {
    background: linear-gradient(145deg, #11d6bb 0%, #0eb89e 38%, #3b82c4 100%);
}

.activity-card__media--cover {
    padding: 0;
    align-items: stretch;
    background: #f4f6f8;
}

.activity-card__media--cover::before,
.activity-card__media--cover::after {
    content: none;
}

.activity-card__media--cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-card__media::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.22), transparent 42%),
        radial-gradient(circle at 12% 85%, rgba(255, 255, 255, 0.12), transparent 38%);
    pointer-events: none;
}

.activity-card__media::after {
    content: "";
    position: absolute;
    right: -1.5rem;
    top: -1.5rem;
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    pointer-events: none;
}

.activity-card__glyph {
    position: relative;
    z-index: 1;
    font-size: clamp(1.375rem, 3.5vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
}

.activity-card__pill {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #fff;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 999px;
}

.activity-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem 1.375rem 1.375rem;
}

@media (hover: hover) and (pointer: fine) {
    .activity-card:hover {
        border-color: rgba(17, 214, 187, 0.45);
    }

    .activity-card:hover .activity-card-title {
        color: var(--primary-dark);
    }
}

.activity-card-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5625rem;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 999px;
    line-height: 1.4;
}

.activity-card-badge:empty {
    display: none;
}

.activity-card-badge.status-active {
    color: var(--primary-dark);
    background: rgba(17, 214, 187, 0.1);
}

.activity-card-badge.status-upcoming {
    color: #9a6700;
    background: rgba(154, 103, 0, 0.1);
}

.activity-card-badge.status-ended {
    color: var(--text-lighter);
    background: rgba(0, 0, 0, 0.05);
}

.activity-card-meta {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.625rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.02em;
}

.activity-date {
    font-variant-numeric: tabular-nums;
}

.activity-card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    transition: color 0.2s ease;
}

.activity-card-title a {
    color: inherit;
    text-decoration: none;
}

a.activity-card__media {
    display: block;
    color: inherit;
    text-decoration: none;
}

.activity-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin-top: auto;
    padding-top: 0.875rem;
}

.activity-card-actions .activity-card-link {
    margin-top: 0;
    padding-top: 0;
}

.activity-card-link--external {
    color: #64748b;
}

.activity-card-desc {
    font-size: 0.875rem;
    color: #737373;
    margin-bottom: 0;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.activity-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 0.875rem;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.8125rem;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

@media (hover: hover) and (pointer: fine) {
    .activity-card-link:hover {
        color: var(--primary-color);
    }
}

@media (hover: none), (pointer: coarse) {
    .activity-card-link:active {
        opacity: 0.72;
    }
}

/* ── 分页 ── */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.pagination-btn.active,
.pagination-btn.active:hover {
    color: #fff;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

@media (hover: hover) and (pointer: fine) {
    .pagination-btn:hover:not(:disabled) {
        color: var(--primary-color);
        border-color: var(--primary-color);
    }

    .pagination-btn.active:hover {
        color: #fff;
        background: var(--primary-color);
        border-color: var(--primary-color);
    }
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── 响应式 ── */
@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .news-card--featured {
        grid-column: 1 / -1;
    }

    .activities-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.75rem;
    }

    .news-card--featured {
        grid-column: 1 / -1;
    }

    .activities-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.75rem;
    }
}

@media (max-width: 767px) {
    .news-cine {
        min-height: clamp(16rem, 55vh, 26rem);
        padding-top: calc(var(--header-height) + 2rem);
    }

    .news-panel {
        margin-top: -1.5rem;
        border-radius: 1.25rem 1.25rem 0 0;
    }

    .news-tabs .tabs {
        display: grid;
        width: 100%;
        max-width: 20rem;
    }

    .news-tabs .tab-btn {
        min-width: 0;
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
        text-align: center;
    }

    .news-content {
        padding: 1.5rem 0 3.5rem;
    }

    .news-card-content,
    .news-card--featured .news-card-content {
        padding: 1.125rem 1.125rem 1.25rem;
    }

    .news-card--featured {
        grid-template-columns: 1fr;
    }

    .news-card--featured .news-card__media {
        aspect-ratio: 16 / 10;
    }

    .activities-list {
        grid-template-columns: 1fr;
    }

    .activity-card-content {
        padding: 1.125rem 1.125rem 1.25rem;
    }

    .pagination {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-cine__accent,
    .news-cine__tag,
    .news-cine .page-title,
    .news-cine .page-subtitle {
        animation: none !important;
    }

    .page-news .header {
        transition: none !important;
    }

    .news-reveal,
    .news-card,
    .activity-card {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }

    .tab-content.active {
        animation: none !important;
    }

    .tabs-indicator {
        transition: none !important;
    }
}
