/**
 * 银龄在线首页 — 按 MasterGo 设计稿 1:1 布局
 * 设计参考：design/mastergo/DC203E4CBC1B4D52.png
 */

/* ========= 设计 token ========= */
.portal-home {
    --ph-red: #c41e24;
    --ph-red-dark: #9e181d;
    --ph-blue: #1e6fba;
    --ph-text: #333;
    --ph-muted: #666;
    --ph-line: #e8e8e8;
    --ph-bg: #fff;
    --ph-footer: #2b2b2b;
    /* 子模块标题栏统一三色（红 / 蓝 / 暖橙） */
    --ph-theme-red: #c41e24;
    --ph-theme-red-bg: #fdeaea;
    --ph-theme-blue: #1e6fba;
    --ph-theme-blue-bg: #e8f1fc;
    --ph-theme-gold: #b87800;
    --ph-headline-blue: #20518e;
    --ph-headline-blue-hover: #1a4580;
    --ph-container: var(--layout-container-max, var(--layout-content-max, 1200px));
    --ph-gap: 20px;
    --ph-radius: 4px;
    /* 综艺·短剧单卡高度（1/6 宽正方形图 + 标题区），供老年摄影卡片对齐 */
    --ph-video-card-height: calc((var(--ph-container) - 60px) / 6 + 38px);
    --header-height: 180px;
    background: var(--ph-bg) !important;
    color: var(--ph-text);
    font-size: 16px;
    line-height: 1.6;
    --ph-font-meta: 14px;
    --ph-font-sm: 15px;
    --ph-font-base: 16px;
    --ph-font-md: 17px;
    --ph-font-lg: 18px;
    --ph-font-xl: 20px;
    --ph-font-title: 24px;
}

.portal-home .scroll-wrapper,
.portal-home .main-container {
    background: var(--ph-bg);
}

.portal-home .scroll-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    min-width: 0;
}

.portal-home .ph-main,
.portal-home .ph-hero,
.portal-home .ph-container {
    min-width: 0;
    max-width: 100%;
}

html.layout-wide body.portal-home {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.portal-home .hero-screen,
.portal-home .snap-section {
    scroll-snap-align: unset;
    min-height: 0;
}

.portal-home .ph-container,
.portal-home .container.ph-container,
.portal-home .container,
.portal-home .ph-hero,
.portal-home .site-header--portal .header-utility-inner,
.portal-home .site-header--portal .header-top-inner,
.portal-home .site-header--portal .header-main-nav-inner {
    max-width: var(--ph-container) !important;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--ph-page-padding);
    padding-right: var(--ph-page-padding);
    box-sizing: border-box;
}

.portal-home .ph-hero {
    padding-top: 8px;
    padding-bottom: 8px;
}

/* ========= 首屏头条（导航与 Hero 之间） ========= */
.ph-headline {
    padding: 6px var(--ph-page-padding) 8px;
    background: #fff;
    text-align: center;
}

.ph-headline .ph-container,
.portal-home .ph-headline .ph-container {
    max-width: var(--ph-container);
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
}

.ph-headline-title {
    margin: 0;
    font-size: clamp(22px, 2.6vw, 36px);
    font-weight: 700;
    line-height: 1.35;
}

.ph-headline-title a {
    color: var(--ph-headline-blue);
    text-decoration: none;
}

.ph-headline-title a:hover {
    color: var(--ph-headline-blue-hover);
}

.ph-headline-summary {
    margin: 8px 0 0;
    font-size: clamp(14px, 1.4vw, 18px);
    font-weight: 400;
    line-height: 1.5;
    color: var(--ph-headline-blue);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ph-headline-summary a {
    color: inherit;
    text-decoration: none;
}

.ph-headline-summary a:hover {
    color: var(--ph-headline-blue-hover);
}

/* 隐藏旧版首页区块与 snap 相关 */
.portal-home .activity-section,
.portal-home .main-background-section,
.portal-home .read-section,
.portal-home .short-video-section,
.portal-home .health-snap-section,
.portal-home .health-science-section,
.portal-home .photography-section,
.portal-home .show-section,
.portal-home .international-cooperation-section,
.portal-home .back-to-top {
    display: none !important;
}

/* ========= 通用模块头 ========= */
.ph-section {
    padding: 28px 0 8px;
}

/* 首屏以下区块：跳过渲染直至接近视口，减轻初次打开卡顿 */
.portal-home .ph-section--defer {
    content-visibility: auto;
    contain-intrinsic-size: auto 480px;
}

.portal-home .ph-section--defer.is-near-viewport {
    content-visibility: visible;
}

.ph-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ph-line);
}

.ph-section-title {
    margin: 0;
    padding-left: 12px;
    border-left: 4px solid var(--ph-blue);
    font-size: 24px;
    font-weight: 700;
    color: var(--ph-text);
    line-height: 1.2;
}

.ph-section-more {
    color: var(--ph-muted);
    text-decoration: none;
    font-size: 16px;
    white-space: nowrap;
}

.ph-section-more:hover {
    color: var(--ph-red);
}

/* ========= Tab ========= */
.ph-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--ph-line);
}

.ph-tab {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: var(--ph-muted);
    font-size: 17px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.ph-tab.is-active {
    color: var(--ph-red);
    border-bottom-color: var(--ph-red);
    font-weight: 600;
}

.ph-tab-panel {
    display: none;
}

.ph-tab-panel.is-active {
    display: block;
}

/* ========= 首屏 Hero ========= */
.ph-hero {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--ph-gap);
}

.ph-hero-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
    border-radius: var(--ph-radius);
    overflow: hidden;
    background: #111;
}

.ph-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.ph-hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.ph-hero-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.ph-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.ph-hero-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: #fff;
    font-size: 16px;
    line-height: 1.4;
}

.ph-hero-caption a {
    color: #fff;
    text-decoration: none;
}

.ph-hero-dots {
    position: absolute;
    bottom: 12px;
    right: 16px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.ph-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.4);
    padding: 0;
    cursor: pointer;
}

.ph-hero-dot.is-active {
    background: #fff;
}

.ph-hero-hot {
    border: 1px solid var(--ph-line);
    border-radius: var(--ph-radius);
    background: #fafafa;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.ph-hero-hot-title {
    margin: 0;
    padding: 14px 16px;
    background: var(--ph-red);
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

.ph-hero-hot-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    flex: 1;
    overflow: hidden;
}

.ph-hero-hot-list li {
    padding: 10px 16px;
    border-bottom: 1px dashed var(--ph-line);
}

.ph-hero-hot-list li:last-child {
    border-bottom: none;
}

.ph-hero-hot-list a {
    color: var(--ph-text);
    text-decoration: none;
    font-size: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ph-hero-hot-list a:hover {
    color: var(--ph-red);
}

.ph-hero-hot-date {
    display: block;
    margin-top: 4px;
    color: #999;
    font-size: 14px;
}

/* ========= 老龄资讯 三栏 ========= */
.ph-news-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: var(--ph-gap);
}

.ph-news-feature {
    border: 1px solid var(--ph-line);
    border-radius: var(--ph-radius);
    overflow: hidden;
    background: #fff;
}

.ph-news-feature img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.ph-news-feature-body {
    padding: 12px;
}

.ph-news-feature-body a {
    color: var(--ph-text);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

.ph-news-feature-body a:hover {
    color: var(--ph-red);
}

.ph-news-stack {
    display: flex;
    flex-direction: column;
    gap: var(--ph-gap);
}

.ph-news-card {
    flex: 1;
    border: 1px solid var(--ph-line);
    border-radius: var(--ph-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ph-news-card img {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.ph-news-card p {
    margin: 0;
    padding: 10px;
    flex: 1;
}

.ph-news-card a {
    color: var(--ph-text);
    text-decoration: none;
    font-size: 16px;
}

.ph-news-list-panel {
    border: 1px solid var(--ph-line);
    border-radius: var(--ph-radius);
    padding: 8px 0;
    background: #fff;
}

.ph-news-list-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ph-news-list-panel li {
    padding: 9px 14px;
    border-bottom: 1px dashed var(--ph-line);
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: flex-start;
}

.ph-news-list-panel li:last-child {
    border-bottom: none;
}

.ph-news-list-panel a {
    color: var(--ph-text);
    text-decoration: none;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ph-news-list-panel a:hover {
    color: var(--ph-red);
}

.ph-news-list-panel time {
    color: #999;
    font-size: 14px;
    flex-shrink: 0;
}

/* ========= 政策法规 ========= */
#ph-policy {
    content-visibility: visible;
}

.ph-policy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.ph-policy-panel {
    --ph-policy-media-height: clamp(200px, 16vw, 260px);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #ececec;
    border-radius: 6px;
    background: #fff;
}

.ph-policy-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    font-size: 17px;
    font-weight: 600;
    line-height: 22px;
    border-radius: 6px 6px 0 0;
}

.ph-policy-panel-title {
    flex: 1;
    min-width: 0;
}

.ph-policy-panel-more {
    flex-shrink: 0;
    color: var(--ph-muted);
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
}

.ph-policy-panel-more:hover {
    color: var(--ph-red);
}

/* 国情教育 / 银龄行动 / 银龄风采 / 健康科普 / 老年摄影 / 银龄时尚 — 子栏目标题栏统一红底红字（对齐数说老龄） */
.ph-policy-panel-head,
.ph-action-panel-head,
.ph-style-panel-head,
.ph-health-panel-head,
.ph-fashion-panel-head {
    color: var(--ph-theme-red);
    background: var(--ph-theme-red-bg);
}

.ph-policy-panel-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding: 12px 14px 14px;
}

.ph-policy-panel-media {
    display: block;
    width: 100%;
    height: var(--ph-policy-media-height);
    max-height: var(--ph-policy-media-height);
    flex: 0 0 var(--ph-policy-media-height);
    overflow: hidden;
    border-radius: 4px;
    background: #f5f5f5;
}

.ph-policy-panel-media img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
    display: block;
}

.ph-policy-carousel {
    position: relative;
    width: 100%;
    height: var(--ph-policy-media-height);
    max-height: var(--ph-policy-media-height);
    flex: 0 0 var(--ph-policy-media-height);
    overflow: hidden;
    border-radius: 4px;
    background: #f5f5f5;
}

.ph-policy-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.ph-policy-carousel-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.ph-policy-carousel-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.ph-policy-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
    display: block;
}

.ph-policy-carousel-dots {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.ph-policy-carousel-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

.ph-policy-carousel-dot.is-active {
    background: #fff;
}

.ph-policy-panel-body p,
.ph-policy-carousel-caption {
    margin: 0;
    padding-top: 10px;
    line-height: 20px;
    flex-shrink: 0;
    overflow: visible;
}

.ph-policy-panel-body a {
    color: #222;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
}

.ph-policy-panel-body a:hover {
    color: var(--ph-red);
}

.ph-policy-stack {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ph-policy-stack-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f3f3f3;
}

.ph-policy-stack-item:first-child {
    padding-top: 0;
}

.ph-policy-stack-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.ph-policy-stack-thumb {
    flex-shrink: 0;
    display: block;
    width: 72px;
    height: 48px;
    overflow: hidden;
    border-radius: 4px;
}

.ph-policy-stack-thumb img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

.ph-policy-stack-title {
    flex: 1;
    min-width: 0;
    color: #222;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
}

.ph-policy-stack-title:hover {
    color: var(--ph-red);
}

.ph-policy-feature {
    border: 1px solid var(--ph-line);
    border-radius: var(--ph-radius);
    overflow: hidden;
}

.ph-policy-feature img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.ph-policy-feature-title {
    padding: 12px;
    background: #fafafa;
}

.ph-policy-feature-title a {
    color: var(--ph-text);
    font-weight: 600;
    text-decoration: none;
}

.ph-policy-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--ph-gap);
}

.ph-policy-card {
    border: 1px solid var(--ph-line);
    border-radius: var(--ph-radius);
    overflow: hidden;
}

.ph-policy-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.ph-policy-card p {
    margin: 0;
    padding: 10px;
    font-size: 16px;
}

.ph-policy-card a {
    color: var(--ph-text);
    text-decoration: none;
}

/* ========= 银龄风采：两栏面板（对齐健康科普） ========= */
.ph-style-head {
    align-items: center;
}

.ph-style-head-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.ph-style-head .ph-section-title {
    flex-shrink: 0;
}

.ph-style-head .ph-section-title::after {
    display: none;
}

.ph-style-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.ph-style-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #ececec;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.ph-style-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    font-size: 17px;
    font-weight: 600;
    line-height: 22px;
}

.ph-style-panel-title {
    flex: 1;
    min-width: 0;
}

.ph-style-panel-more {
    flex-shrink: 0;
    color: var(--ph-muted);
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
}

.ph-style-panel-more:hover {
    color: var(--ph-red);
}

.ph-style-panel-body {
    flex: 1 1 auto;
    display: flex;
    padding: 12px 14px 14px;
}

.ph-style-split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: stretch;
    width: 100%;
    height: var(--ph-video-card-height);
    min-height: 0;
    border: 1px solid #ececec;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.ph-style-split-media {
    display: block;
    overflow: hidden;
    min-height: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: #f5f5f5;
    line-height: 0;
}

.ph-style-split-media img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
    display: block;
    border-radius: 8px;
}

.ph-style-split-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    height: 100%;
    padding: 18px 16px;
    min-width: 0;
    box-sizing: border-box;
}

.ph-style-split-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.ph-style-split-title a {
    color: #222;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ph-style-split-title a:hover {
    color: var(--ph-red);
}

/* ========= 老年摄影：Tab + 横向卡片 ========= */
.ph-photo-head {
    align-items: center;
}

.ph-photo-head-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex-wrap: wrap;
}

.ph-photo-head .ph-section-title {
    flex-shrink: 0;
}

.ph-photo-head .ph-section-title::after {
    display: none;
}

.ph-section-title--photo {
    border-left-color: var(--ph-theme-red);
}

.ph-photo-module {
    border: 1px solid #ececec;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.ph-photo-tabs {
    display: flex;
    border-bottom: 1px solid #ececec;
}

.ph-photo-tab {
    flex: 1;
    margin: 0;
    margin-bottom: 0;
    padding: 10px 14px;
    border: none;
    border-top: 3px solid transparent;
    border-bottom: none;
    background: var(--ph-theme-red-bg);
    color: #333;
    font-size: 17px;
    font-weight: 600;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    min-height: 42px;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.ph-photo-tab::before {
    display: none;
}

.ph-photo-tab.is-active {
    background: #fff;
    color: var(--ph-theme-red);
    border-top-color: var(--ph-theme-red);
    border-bottom: none;
}

.ph-photo-tab:hover:not(.is-active) {
    color: var(--ph-theme-red);
}

.ph-photo-content {
    display: flex;
    align-items: stretch;
    gap: 12px;
    padding: 16px 14px 16px 16px;
}

.ph-photo-panel-wrap {
    flex: 1;
    min-width: 0;
}

.ph-photo-panel-wrap .ph-tab-panel {
    display: none;
}

.ph-photo-panel-wrap .ph-tab-panel.is-active {
    display: block;
}

.ph-photo-cards {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.ph-photo-cards::-webkit-scrollbar {
    display: none;
}

.ph-photo-card {
    flex: 0 0 calc((100% - 56px) / 4);
    width: calc((100% - 56px) / 4);
    max-width: 200px;
    min-width: 148px;
    min-height: 0;
}

.ph-photo-card-media {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    background: #f5f5f5;
    line-height: 0;
}

.ph-photo-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.ph-photo-card-body {
    padding: 10px 2px 0;
}

.ph-photo-card-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    line-height: 22px;
}

.ph-photo-card-title a {
    color: #222;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ph-photo-card-title a:hover {
    color: var(--ph-red);
}

.ph-photo-card-desc {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ph-photo-side-more {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: stretch;
    width: 40px;
    padding: 12px 8px;
    border-radius: 8px;
    background: var(--ph-theme-red-bg);
    color: var(--ph-theme-red);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    text-decoration: none;
    white-space: nowrap;
}

.ph-photo-side-more:hover {
    color: var(--ph-red-dark);
    background: #fbd5d5;
}

/* ========= 银龄时尚：两栏面板（对齐老年摄影） ========= */
.ph-fashion-head {
    align-items: center;
}

.ph-intl-head {
    align-items: center;
}

.ph-fashion-head-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex-wrap: wrap;
}

.ph-fashion-head .ph-section-title {
    flex-shrink: 0;
}

.ph-fashion-head .ph-section-title::after {
    display: none;
}

.ph-section-title--fashion {
    border-left-color: var(--ph-red);
}

.ph-section-title--intl {
    border-left-color: var(--ph-theme-blue);
}

.ph-fashion-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ph-fashion-tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    white-space: nowrap;
}

.ph-fashion-tag--star {
    color: var(--ph-theme-red);
    background: var(--ph-theme-red-bg);
}

.ph-fashion-tag--show {
    color: var(--ph-theme-blue);
    background: var(--ph-theme-blue-bg);
}

.ph-fashion-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.ph-fashion-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #ececec;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.ph-fashion-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    font-size: 17px;
    font-weight: 600;
    line-height: 22px;
}

.ph-fashion-panel-title {
    flex: 1;
    min-width: 0;
}

.ph-fashion-panel-more {
    flex-shrink: 0;
    color: var(--ph-muted);
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
}

.ph-fashion-panel-more:hover {
    color: var(--ph-red);
}

.ph-fashion-panel-body {
    flex: 1 1 auto;
    display: flex;
    padding: 12px 14px 14px;
}

.ph-fashion-split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: stretch;
    width: 100%;
    height: var(--ph-video-card-height);
    min-height: 0;
    border: 1px solid #ececec;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.ph-fashion-split-media {
    display: block;
    overflow: hidden;
    min-height: 0;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    line-height: 0;
}

.ph-fashion-split-media img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
    display: block;
}

.ph-fashion-split-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    height: 100%;
    padding: 18px 16px;
    min-width: 0;
    box-sizing: border-box;
}

.ph-fashion-split-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 2px 10px;
    border-radius: 4px;
    color: var(--ph-theme-red);
    background: var(--ph-theme-red-bg);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.ph-fashion-split--show .ph-fashion-split-tag {
    color: var(--ph-theme-blue);
    background: var(--ph-theme-blue-bg);
}

.ph-fashion-split-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.ph-fashion-split-title a {
    color: #222;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ph-fashion-split-title a:hover {
    color: var(--ph-red);
}

/* ========= 国际协作：左大右小 ========= */
.ph-intl-board {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(260px, 1fr);
    gap: 16px;
    align-items: stretch;
}

.ph-intl-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 16px;
    border: 1px solid #ececec;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.ph-intl-hero-media {
    display: block;
    overflow: hidden;
    border-radius: 8px;
}

.ph-intl-hero-media img {
    width: 100%;
    height: clamp(220px, 22vw, 320px);
    object-fit: fill;
    display: block;
}

.ph-intl-hero-title {
    margin: 14px 0 10px;
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
}

.ph-intl-hero-title a {
    color: #222;
    text-decoration: none;
}

.ph-intl-hero-title a:hover {
    color: var(--ph-red);
}

.ph-intl-summary {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #f0f0f0;
}

.ph-intl-summary-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ph-intl-summary-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ph-intl-summary-item a {
    position: relative;
    display: block;
    padding-left: 18px;
    color: #555;
    font-size: 16px;
    line-height: 22px;
    text-decoration: none;
}

.ph-intl-summary-item a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ph-red);
    transform: translateY(-50%);
}

.ph-intl-summary-item a:hover {
    color: var(--ph-red);
}

.ph-intl-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.ph-intl-side-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    border: 1px solid #ececec;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}

.ph-intl-side-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.ph-intl-side-media {
    display: block;
    overflow: hidden;
}

.ph-intl-side-media img {
    width: 100%;
    height: clamp(120px, 12vw, 160px);
    object-fit: fill;
    display: block;
}

.ph-intl-side-caption {
    flex: 1;
    margin: 0;
    padding: 12px 14px 14px;
}

.ph-intl-side-caption a {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ph-intl-side-caption a:hover {
    color: var(--ph-red);
}

/* ========= 银龄阅读：左分类导航 + 右乐龄读书会卡片 ========= */
.ph-read-head {
    align-items: center;
}

.ph-read-head-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.ph-read-head .ph-section-title {
    flex-shrink: 0;
    border-left-color: var(--ph-theme-red);
}

.ph-read-head .ph-section-title::after {
    display: none;
}

.ph-read-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ph-read-tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.ph-read-tag:hover {
    opacity: 0.85;
}

.ph-read-tag--forum {
    color: var(--ph-theme-red);
    background: var(--ph-theme-red-bg);
}

.ph-read-tag--club {
    color: var(--ph-theme-blue);
    background: var(--ph-theme-blue-bg);
}

.ph-read-board {
    display: grid;
    grid-template-columns: minmax(220px, 26%) minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
    border: 1px solid #ececec;
    border-radius: 10px;
    background: #fff;
}

.ph-read-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ph-read-nav-item {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ph-read-nav-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.ph-read-nav-item--forum {
    color: var(--ph-theme-red);
    background: var(--ph-theme-red-bg);
}

.ph-read-nav-item--magazine {
    color: var(--ph-theme-blue);
    background: var(--ph-theme-blue-bg);
}

.ph-read-nav-item--hualing {
    color: var(--ph-theme-gold);
    background: var(--ph-theme-gold-bg);
}

.ph-read-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ph-read-content-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.ph-read-content-title {
    color: var(--ph-theme-blue);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.ph-read-content-more {
    color: var(--ph-muted);
    font-size: 16px;
    text-decoration: none;
    white-space: nowrap;
}

.ph-read-content-more:hover {
    color: var(--ph-red);
}

.ph-read-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    flex: 1;
}

.ph-read-card,
.ph-video-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

.ph-read-card:hover,
.ph-video-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.ph-read-card-media {
    display: block;
    overflow: hidden;
    line-height: 0;
}

.ph-read-card-media img {
    width: 100%;
    height: clamp(140px, 12vw, 168px);
    object-fit: fill;
    display: block;
}

.ph-read-card-caption {
    flex: 1;
    margin: 0;
    padding: 10px 12px 12px;
    text-align: center;
}

.ph-read-card-caption a {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ph-read-card-caption a:hover {
    color: var(--ph-red);
}

/* ========= 健康科普：两栏面板（对齐老年摄影） ========= */
.ph-health-head {
    align-items: center;
}

.ph-health-head-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex-wrap: wrap;
}

.ph-health-head .ph-section-title {
    flex-shrink: 0;
}

.ph-health-head .ph-section-title::after {
    display: none;
}

.ph-section-title--health {
    border-left-color: var(--ph-red);
}

.ph-health-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.ph-health-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #ececec;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.ph-health-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    font-size: 17px;
    font-weight: 600;
    line-height: 22px;
}

.ph-health-panel-title {
    flex: 1;
    min-width: 0;
}

.ph-health-panel-more {
    flex-shrink: 0;
    color: var(--ph-muted);
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
}

.ph-health-panel-more:hover {
    color: var(--ph-red);
}

.ph-health-panel-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 10px 14px 14px;
}

.ph-health-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.ph-health-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.ph-health-item-media {
    display: block;
    flex: 0 0 118px;
    width: 118px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 6px;
    background: #f5f5f5;
    line-height: 0;
}

.ph-health-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.ph-health-item-title {
    flex: 1;
    margin: 0;
    min-width: 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
}

.ph-health-item-title a {
    color: #222;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ph-health-item-title a:hover {
    color: var(--ph-red);
}

/* ========= 旅居·康养：四列图文卡片 ========= */
.ph-community-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.ph-community-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

.ph-community-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.ph-community-card-media {
    display: block;
    overflow: hidden;
    line-height: 0;
}

.ph-community-card-media img {
    width: 100%;
    height: clamp(147px, 11.55vw, 181px);
    object-fit: fill;
    display: block;
}

.ph-community-card-body {
    flex: 1;
    padding: 10px 12px 12px;
}

.ph-community-card-body h4 {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 20px;
}

.ph-community-card-body h4 a {
    color: #333;
    font-weight: 500;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ph-community-card-body h4 a:hover {
    color: var(--ph-red);
}

.ph-community-card-body p {
    margin: 0;
    color: var(--ph-muted);
    font-size: 14px;
    line-height: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========= 志愿服务 ========= */
.ph-volunteer-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--ph-gap);
}

.ph-volunteer-list {
    border: 1px solid var(--ph-line);
    border-radius: var(--ph-radius);
    padding: 8px 0;
}

.ph-volunteer-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ph-volunteer-list li {
    padding: 12px 16px;
    border-bottom: 1px dashed var(--ph-line);
}

.ph-volunteer-list li:last-child {
    border-bottom: none;
}

.ph-volunteer-list a {
    color: var(--ph-text);
    text-decoration: none;
}

.ph-volunteer-list a:hover {
    color: var(--ph-red);
}

.ph-volunteer-feature {
    border: 1px solid var(--ph-line);
    border-radius: var(--ph-radius);
    overflow: hidden;
}

.ph-volunteer-feature img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
}


/* ========= 银龄才艺 双宽卡 ========= */
.ph-talent-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--ph-gap);
}

.ph-talent-card {
    border: 1px solid var(--ph-line);
    border-radius: var(--ph-radius);
    overflow: hidden;
}

.ph-talent-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.ph-talent-card p {
    margin: 0;
    padding: 12px;
    background: #fafafa;
}

.ph-talent-card a {
    color: var(--ph-text);
    text-decoration: none;
    font-weight: 600;
}

/* ========= 专题横幅（保留原 red-news 专题图） ========= */
.ph-topic-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 0 24px;
    justify-content: center;
}

.ph-topic-strip a {
    display: block;
    flex: 1 1 0;
    min-width: 0;
}

.ph-topic-strip img {
    display: block;
    width: 100%;
    height: 58px;
    object-fit: cover;
}

.ph-topic-strip .ph-topic-strip-countdown {
    position: relative;
}

.ph-topic-strip .ph-topic-countdown {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    text-align: center;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

/* ========= 设计稿截图微调：白底信息流门户 ========= */
.portal-home {
    --ph-container: var(--layout-container-max, var(--layout-content-max, 1200px));
    --ph-gap: 16px;
    --ph-radius: 0;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}

.portal-home .ph-main {
    padding-bottom: 38px;
    padding-top: 0;
}

.portal-home img {
    background: #f5f5f5;
}

.portal-home img.is-missing {
    object-fit: contain;
    padding: 20px;
    box-sizing: border-box;
    background: #f7f7f7;
}

.portal-home img[src*="liebiaotu_default"] {
    object-fit: contain;
    padding: 18px;
    box-sizing: border-box;
}

.ph-policy-panel-media img[src*="liebiaotu_default"],
.ph-policy-carousel-slide img[src*="liebiaotu_default"],
.ph-health-item-media img[src*="liebiaotu_default"],
.ph-photo-card-media img[src*="liebiaotu_default"],
.ph-fashion-split-media img[src*="liebiaotu_default"],
.ph-style-split-media img[src*="liebiaotu_default"],
.ph-action-panel-media img[src*="liebiaotu_default"],
.ph-read-card-media img[src*="liebiaotu_default"],
.ph-video-card-media img[src*="liebiaotu_default"],
.ph-community-card-media img[src*="liebiaotu_default"] {
    object-fit: fill;
    padding: 0;
    width: 100%;
    height: 100%;
}

.ph-hero-slide a,
.ph-news-feature,
.ph-news-card,
.ph-policy-feature,
.ph-policy-card,
.ph-style-panel,
.ph-style-split,
.ph-read-board,
.ph-read-card,
.ph-video-card,
.ph-community-card,
.ph-volunteer-feature,
.ph-talent-card {
    min-height: 0;
}

.ph-section {
    padding: 18px 0 4px;
}

.ph-section-head {
    min-height: 30px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--ph-line);
}

.ph-section-title {
    position: relative;
    padding-left: 10px;
    border-left: 4px solid var(--ph-red);
    font-size: 20px;
    line-height: 22px;
}

.ph-section-title::after {
    display: none;
}

.ph-section-more {
    font-size: 16px;
    color: #999;
}

.ph-tabs {
    gap: 14px;
    margin: -6px 0 14px;
    border-bottom: none;
}

.ph-tab {
    position: relative;
    padding: 0;
    color: #777;
    font-size: 16px;
    line-height: 22px;
    border-bottom: none;
}

.ph-tab::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 5px;
    border-radius: 50%;
    background: var(--ph-theme-gold);
    vertical-align: 1px;
}

.ph-tab:nth-child(2)::before {
    background: var(--ph-theme-blue);
}

.ph-tab:nth-child(3)::before {
    background: var(--ph-theme-red);
}

.ph-tab.is-active {
    color: var(--ph-red);
    border-bottom: none;
}

.ph-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 18px;
}

.ph-hero-carousel {
    height: 100%;
    aspect-ratio: auto;
    min-height: 0;
    border-radius: 0;
}

.ph-hero-caption {
    padding: 42px 18px 12px;
    font-size: 20px;
    font-weight: 600;
}

.ph-hero-hot {
    min-height: 0;
    border: none;
    border-radius: 0;
    background: #fff;
}

.ph-hero-news-tabs {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0 0 8px !important;
    padding: 0 0 8px 10px;
    border-left: 4px solid var(--ph-red);
    border-bottom: 1px solid var(--ph-line);
    flex-shrink: 0;
}

.ph-hero-news-tab {
    margin: 0 !important;
    padding: 0;
    border: none;
    background: transparent;
    color: #666;
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
    text-decoration: none;
    cursor: pointer;
}

.ph-hero-news-tab:hover {
    color: var(--ph-red);
}

.ph-hero-news-tab::before {
    display: none;
}

.ph-hero-news-tab.is-active {
    color: var(--ph-red);
}

.ph-hero-hot-title {
    padding: 0 0 8px 10px;
    color: var(--ph-red);
    background: #fff;
    border-left: 4px solid var(--ph-red);
    border-bottom: 1px solid var(--ph-line);
    font-size: 20px;
    line-height: 24px;
}

.ph-hero-hot-list {
    flex: 1;
    min-height: 0;
    padding-top: 5px;
}

.ph-hero-hot-list li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0 10px 14px;
    border-bottom: none;
}

.ph-hero-hot-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #666;
}

.ph-news-list-panel li::before,
.ph-volunteer-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 17px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #666;
}

.ph-hero-hot-list a {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #222;
    font-size: 16px;
    line-height: 20px;
}

.ph-hero-hot-date {
    flex-shrink: 0;
    color: #999;
    font-size: 14px;
    line-height: 20px;
    white-space: nowrap;
}

.ph-hero-hot-more {
    margin-left: auto;
    padding-right: 2px;
    color: #999;
    font-size: 16px;
    line-height: 24px;
    text-decoration: none;
    white-space: nowrap;
}

.ph-hero-hot-more:hover {
    color: var(--ph-red);
}

.ph-topic-strip {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    padding: 14px 16px 8px;
}

.ph-news-grid {
    grid-template-columns: 330px 330px minmax(0, 1fr);
    align-items: stretch;
}

.ph-news-feature,
.ph-news-card,
.ph-news-list-panel,
.ph-policy-feature,
.ph-policy-card,
.ph-read-board,
.ph-volunteer-list,
.ph-volunteer-feature,
.ph-talent-card {
    border: none;
    border-radius: 0;
    background: #fff;
}

.ph-action-head {
    align-items: center;
}

.ph-action-head-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.ph-action-head .ph-section-title {
    flex-shrink: 0;
}

.ph-action-head .ph-section-title::after {
    display: none;
}

.ph-action-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ph-action-tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    white-space: nowrap;
}

.ph-action-tag--news {
    color: var(--ph-theme-blue);
    background: var(--ph-theme-blue-bg);
}

.ph-action-tag--practice {
    color: var(--ph-theme-gold);
    background: var(--ph-theme-gold-bg);
}

.ph-action-tag--volunteer {
    color: var(--ph-theme-red);
    background: var(--ph-theme-red-bg);
}

/* ========= 国情教育：三栏并排（对齐银龄行动） ========= */
.ph-policy-head {
    align-items: center;
}

.ph-policy-head-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex-wrap: wrap;
}

.ph-policy-head .ph-section-title {
    flex-shrink: 0;
}

.ph-policy-head .ph-section-title::after {
    display: none;
}

.ph-policy-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ph-policy-tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    white-space: nowrap;
}

.ph-policy-tag--lecture {
    color: var(--ph-theme-blue);
    background: var(--ph-theme-blue-bg);
}

.ph-policy-tag--promo {
    color: var(--ph-theme-gold);
    background: var(--ph-theme-gold-bg);
}

.ph-policy-tag--data {
    color: var(--ph-theme-red);
    background: var(--ph-theme-red-bg);
}

.ph-action-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

.ph-action-panel {
    display: flex;
    flex-direction: column;
    border: 1px solid #ececec;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.ph-action-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    font-size: 17px;
    font-weight: 600;
    line-height: 22px;
}

.ph-action-panel-title {
    flex: 1;
    min-width: 0;
}

.ph-action-panel-more {
    flex-shrink: 0;
    color: var(--ph-muted);
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
}

.ph-action-panel-more:hover {
    color: var(--ph-red);
}

.ph-action-panel-body {
    flex: 1;
    padding: 12px 14px 14px;
}

.ph-action-panel--news ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ph-action-panel--news li {
    padding: 9px 0;
    border-bottom: 1px solid #f3f3f3;
}

.ph-action-panel--news li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ph-action-panel--news li:first-child {
    padding-top: 0;
}

.ph-action-panel a {
    color: #222;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
}

.ph-action-panel a:hover {
    color: var(--ph-red);
}

.ph-action-panel-media {
    display: block;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4 / 3;
    background: #f5f5f5;
    line-height: 0;
}

.ph-action-panel-media img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
    display: block;
}

.ph-action-panel-body p {
    margin: 0;
    padding-top: 10px;
    line-height: 20px;
}

.ph-action-tt-link {
    margin-top: 12px;
}

.ph-action-tt-link a {
    display: block;
    line-height: 0;
}

.ph-action-tt-link img {
    width: 100%;
    display: block;
    border-radius: 4px;
}

.ph-news-feature img {
    height: 180px;
}

.ph-news-feature-body {
    padding: 8px 0 0;
}

.ph-news-feature-body a {
    font-size: 16px;
    line-height: 20px;
}

.ph-news-stack {
    gap: 12px;
}

.ph-news-card img {
    height: 82px;
}

.ph-news-card p {
    padding: 6px 0 0;
    line-height: 19px;
}

.ph-news-list-panel {
    padding: 0;
}

.ph-news-list-panel li {
    position: relative;
    padding: 6px 0 6px 14px;
    border-bottom: none;
}

.ph-news-list-panel a {
    font-size: 16px;
}

.ph-read-board {
    gap: 14px;
    padding: 14px;
}

.ph-read-card-media img {
    height: clamp(130px, 22vw, 160px);
}

.ph-talent-card p {
    padding: 8px 0 0;
    background: #fff;
    line-height: 20px;
}

.ph-policy-cards {
    gap: 14px;
}

.ph-policy-card img {
    height: 88px;
}

.ph-policy-card p {
    padding: 5px 0 0;
    line-height: 18px;
}

.ph-style-grid {
    gap: 14px;
}

.ph-community-cards {
    gap: 12px;
}

.ph-community-card-media img {
    height: clamp(137px, 10.5vw, 168px);
}

.ph-community-card-body {
    padding: 8px 10px 10px;
}

.ph-community-card-body h4 {
    margin-bottom: 4px;
    font-size: 16px;
    line-height: 20px;
}

.ph-community-card-body p {
    font-size: 14px;
    line-height: 18px;
}

.ph-volunteer-grid {
    grid-template-columns: 1fr 455px;
}

/* ========= 综艺·短剧：横向正方形卡片 ========= */
.ph-video-cards {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.ph-video-card-media {
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    line-height: 0;
}

.ph-video-card-media img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

.ph-video-card-caption {
    flex: 1;
    margin: 0;
    padding: 8px 8px 10px;
    text-align: center;
}

.ph-video-card-caption a {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ph-video-card-caption a:hover {
    color: var(--ph-red);
}

.ph-volunteer-list {
    padding: 0;
}

.ph-volunteer-list li {
    position: relative;
    padding: 8px 0 8px 14px;
    border-bottom: none;
}

.ph-volunteer-feature img {
    min-height: 0;
    height: 238px;
}

.ph-community-card-body {
    padding: 8px 10px 10px;
    line-height: 20px;
}

.ph-talent-row {
    gap: 16px;
}

.ph-talent-card img {
    height: 168px;
}

.ph-news-card a,
.ph-policy-card a,
.ph-style-split-title a,
.ph-read-card-caption a,
.ph-video-card-caption a,
.ph-photo-card-title a,
.ph-community-card-body h4 a,
.ph-community-card a,
.ph-talent-card a {
    font-size: 16px;
    color: #222;
    font-weight: 500;
    text-decoration: none;
}

/* ========= 响应式 ========= */
.portal-home .site-footer .footer-inner.container {
    max-width: var(--ph-container) !important;
}

@media (max-width: 1199px) {
    .ph-hero {
        grid-template-columns: 1fr;
    }

    .portal-home .ph-hero-carousel,
    .ph-hero-carousel {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .portal-home .site-header--portal .header-main-nav-inner {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .portal-home .site-header--portal .header-nav {
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .ph-news-grid,
    .ph-policy-grid,
    .ph-action-grid,
    .ph-volunteer-grid,
    .ph-health-grid,
    .ph-fashion-grid,
    .ph-style-grid,
    .ph-intl-board {
        grid-template-columns: 1fr;
    }

    .ph-read-board {
        grid-template-columns: 1fr;
    }

    .ph-read-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ph-video-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ph-community-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ph-talent-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .ph-video-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ph-community-cards,
    .ph-policy-cards {
        grid-template-columns: 1fr;
    }

    .ph-health-grid,
    .ph-fashion-grid,
    .ph-style-grid {
        grid-template-columns: 1fr;
    }

    .ph-photo-card {
        flex-basis: 140px;
        width: 140px;
    }

    .ph-fashion-split,
    .ph-style-split {
        grid-template-columns: 1fr;
        height: auto;
    }

    .ph-health-item-media {
        flex-basis: 96px;
        width: 96px;
    }

    .ph-fashion-split-media,
    .ph-style-split-media {
        min-height: 200px;
        height: 200px;
    }

    .ph-fashion-split-content,
    .ph-style-split-content {
        height: auto;
    }

    .ph-read-cards {
        grid-template-columns: 1fr;
    }

    .ph-section-title {
        font-size: 20px;
    }
}

/* ========= Header Styles for Portal Home ========= */
.portal-home {
    padding-top: 0 !important;
}

.portal-home .site-header--portal {
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
    min-height: auto !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
}

.portal-home .site-header--portal .header-utility-bar,
.portal-home .site-header--portal .header-top-bar {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.portal-home .site-header--portal .header-main-nav {
    background: var(--ph-red) !important;
    border: none !important;
    box-shadow: none !important;
}

.portal-home .site-header--portal .header-utility-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    min-height: 32px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    background: #fff !important;
    border-bottom: 1px solid #eee !important;
}

.portal-home .site-header--portal .header-top-bar {
    padding: 0 !important;
}

.portal-home .site-header--portal .header-top-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    background: #fff !important;
    border-bottom: 1px solid #eee !important;
}

.portal-home .site-header--portal .container {
    max-width: var(--ph-container, var(--layout-container-max, 1200px));
    padding-top: 0 !important;
}

.portal-home .site-header--portal .header-quick-links {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 0 28px !important;
}

.portal-home .site-header--portal .header-quick-links a {
    color: #666 !important;
    font-size: 15px !important;
    line-height: 20px !important;
    text-decoration: none !important;
}

.portal-home .site-header--portal .header-quick-links a:hover {
    color: var(--ph-red) !important;
}

.portal-home .site-header--portal .header-utility-actions {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    flex-shrink: 0 !important;
}

.portal-home .site-header--portal .header-utility-actions .top-nav-action-item {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 0 !important;
}

.portal-home .site-header--portal .header-utility-actions .top-nav-action-text,
.portal-home .site-header--portal .header-utility-actions .top-nav-action-text a {
    color: #666 !important;
    font-size: 15px !important;
}

.portal-home .site-header--portal .header-utility-actions .top-nav-action-text:hover,
.portal-home .site-header--portal .header-utility-actions .top-nav-action-text a:hover {
    color: var(--ph-red) !important;
}

.portal-home .site-header--portal .header-utility-actions .top-nav-action-item img {
    width: 14px !important;
    height: 14px !important;
}

.portal-home .site-header--portal .site-brand {
    flex: 0 0 auto !important;
}

.portal-home .site-header--portal .brand-logo {
    width: 280px !important;
    height: auto !important;
    filter: none !important;
}

.portal-home .site-header--portal .header-top-tools {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}

.portal-home .site-header--portal .portal-search-form {
    display: flex !important;
    align-items: stretch !important;
    gap: 0 !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
}

.portal-home .site-header--portal .portal-search-input {
    background: #fff !important;
    border: none !important;
    padding: 8px 12px !important;
    border-radius: 0 !important;
    width: 220px !important;
    font-size: 16px !important;
}

.portal-home .site-header--portal .portal-search-btn {
    background: var(--ph-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") center / 18px no-repeat !important;
    color: transparent !important;
    border: none !important;
    padding: 0 !important;
    width: 36px !important;
    min-width: 36px !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    font-size: 0 !important;
    flex-shrink: 0 !important;
}

.portal-home .site-header--portal .portal-search-btn:hover {
    background-color: var(--ph-red-dark) !important;
}

.portal-home .site-header--portal .top-nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}

.portal-home .site-header--portal .top-nav-action-item {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.portal-home .site-header--portal .top-nav-action-text,
.portal-home .site-header--portal .top-nav-action-text a {
    color: #666 !important;
    font-size: 16px !important;
    text-decoration: none !important;
}

.portal-home .site-header--portal .top-nav-action-text:hover,
.portal-home .site-header--portal .top-nav-action-text a:hover {
    color: var(--ph-red) !important;
}

.portal-home .site-header--portal .top-nav-action-item img {
    filter: none !important;
}

.portal-home .site-header--portal .header-main-nav {
    padding: 0 !important;
    border-top: none !important;
}

.portal-home .site-header--portal .header-main-nav-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    box-sizing: border-box !important;
    min-height: 42px !important;
    min-width: 0 !important;
}

.portal-home .site-header--portal .header-nav {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-width: 0 !important;
}

.portal-home .site-header--portal .header-nav-link {
    color: #fff !important;
    flex: 1 1 auto !important;
    font-size: 16px !important;
    padding: 10px 6px !important;
    line-height: 22px !important;
    text-decoration: none !important;
    text-align: center !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
}

.portal-home .site-header--portal .header-nav-link:hover {
    color: #ffe6e6 !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px !important;
}

.portal-home .scroll-wrapper {
    padding-top: var(--header-height, 180px) !important;
}

.portal-home .ph-headline {
    padding-top: 6px !important;
    padding-bottom: 8px !important;
    padding-left: var(--ph-page-padding) !important;
    padding-right: var(--ph-page-padding) !important;
}

.portal-home .ph-hero {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    padding-left: var(--ph-page-padding) !important;
    padding-right: var(--ph-page-padding) !important;
}

/* ========= Footer Styles for Portal Home ========= */
.portal-home .site-footer {
    width: 100%;
    max-width: none;
    overflow-x: visible;
    background: transparent !important;
    color: var(--ph-text, #333) !important;
    box-sizing: border-box;
}

.portal-home .footer-main {
    width: 100%;
    background: #FBF8F5 !important;
    color: var(--ph-text, #333) !important;
    border-top: 1px solid #e5e5e5 !important;
    padding: 0 !important;
}

.portal-home .footer-main ._link {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    left: auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.portal-home .footer-main ._linkContent > ul > li:first-child {
    margin-left: 0;
}

.portal-home .footer-main .footer-links .footer-link {
    color: #0D0D0D !important;
    text-decoration: none !important;
}

.portal-home .footer-main .footer-links .footer-link:hover {
    color: #e60012 !important;
    text-decoration: none !important;
}

.portal-home .footer-main ._list li a {
    color: #0D0D0D !important;
    text-decoration: none !important;
}

.portal-home .footer-main ._list li a:hover {
    color: #0D0D0D !important;
    text-decoration: none !important;
}

.portal-home .footer-bottom {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 28px 0 36px;
    background: #fff !important;
    color: var(--ph-muted, #666) !important;
    text-align: center;
    box-sizing: border-box;
}

.portal-home .footer-bottom-inner {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--ph-page-padding);
    box-sizing: border-box;
    text-align: center;
}

.portal-home .footer-bottom-line {
    color: var(--ph-muted, #666) !important;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    text-align: center !important;
    word-break: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

.portal-home .footer-bottom-line a {
    color: var(--ph-muted, #666) !important;
    text-decoration: none !important;
}

.portal-home .footer-bottom-line a:hover {
    color: var(--ph-muted, #666) !important;
    text-decoration: underline !important;
}

@media (max-width: 767px) {
    .portal-home .footer-bottom-line {
        font-size: 15px;
        line-height: 22px;
    }

    .portal-home .footer-bottom-sep {
        margin: 0 8px;
    }
}

.portal-home .footer-section-title {
    color: var(--ph-text, #333) !important;
}

/* ========= 小屏紧凑布局（由 meta.html JS 添加 layout-compact 类） ========= */
html.layout-compact .portal-home .ph-headline {
    padding-top: 4px !important;
    padding-bottom: 6px !important;
}

html.layout-compact .portal-home .ph-headline-title {
    font-size: clamp(20px, 5vw, 28px);
}

html.layout-compact .portal-home .ph-headline-summary {
    font-size: 15px;
    margin-top: 8px;
}

html.layout-compact .portal-home .ph-hero {
    grid-template-columns: 1fr;
}

html.layout-compact .portal-home .site-header--portal .header-main-nav-inner {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 0 var(--ph-page-padding, var(--layout-page-padding, 16px));
}

html.layout-compact .portal-home .site-header--portal .header-nav {
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex-wrap: nowrap;
}

html.layout-compact .portal-home .site-header--portal .header-nav-link {
    font-size: 16px;
    padding: 10px 12px;
}

html.layout-compact .portal-home .ph-news-grid,
html.layout-compact .portal-home .ph-policy-grid,
html.layout-compact .portal-home .ph-action-grid,
html.layout-compact .portal-home .ph-volunteer-grid,
html.layout-compact .portal-home .ph-health-grid,
html.layout-compact .portal-home .ph-fashion-grid,
html.layout-compact .portal-home .ph-style-grid,
html.layout-compact .portal-home .ph-intl-board {
    grid-template-columns: 1fr;
}

html.layout-compact .portal-home .ph-read-board {
    grid-template-columns: 1fr;
}

html.layout-compact .portal-home .ph-read-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

html.layout-compact .portal-home .ph-video-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

html.layout-compact .portal-home .ph-community-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

html.layout-compact .portal-home .ph-talent-row {
    grid-template-columns: 1fr;
}

html.layout-compact .portal-home .site-header--portal .header-utility-inner,
html.layout-compact .portal-home .site-header--portal .header-top-inner,
html.layout-compact .portal-home .site-header--portal .header-main-nav-inner {
    max-width: var(--ph-container, var(--layout-container-max, 1200px));
    padding-left: var(--ph-page-padding, var(--layout-page-padding, 16px));
    padding-right: var(--ph-page-padding, var(--layout-page-padding, 16px));
}

html.layout-compact .portal-home .site-header--portal .brand-logo {
    width: 200px;
    height: 56px;
}

html.layout-narrow .portal-home .ph-video-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

html.layout-narrow .portal-home .ph-community-cards,
html.layout-narrow .portal-home .ph-policy-cards {
    grid-template-columns: 1fr;
}

html.layout-narrow .portal-home .ph-health-grid,
html.layout-narrow .portal-home .ph-fashion-grid,
html.layout-narrow .portal-home .ph-style-grid {
    grid-template-columns: 1fr;
}

html.layout-narrow .portal-home .site-header--portal .header-utility-inner {
    flex-wrap: wrap;
    gap: 8px;
}

html.layout-narrow .portal-home .site-header--portal .header-quick-links {
    gap: 0 16px;
}

html.layout-narrow .portal-home .site-header--portal .header-top-inner {
    flex-direction: column;
    align-items: flex-start;
}
