/* 字体 */
@font-face {
    font-family: 'HarmonyOS Sans SC';
    src: url('https://gh5tc-cos.mp.sztv.com.cn/ysz_web_static/fonts/HarmonyOS_Sans_SC_Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'HarmonyOS Sans SC';
    src: url('https://gh5tc-cos.mp.sztv.com.cn/ysz_web_static/fonts/HarmonyOS_Sans_SC_Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'HarmonyOS Sans SC';
    src: url('https://gh5tc-cos.mp.sztv.com.cn/ysz_web_static/fonts/HarmonyOS_Sans_SC_Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'HarmonyOS Sans SC';
    src: url('https://gh5tc-cos.mp.sztv.com.cn/ysz_web_static/fonts/HarmonyOS_Sans_SC_Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Alibaba PuHuiTi 2.0';
    src: url('https://gh5tc-cos.mp.sztv.com.cn/ysz_web_static/fonts/AlibabaPuHuiTi-2-55-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'HarmonyOS Sans SC', 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.4;
    color: #333333;
    background-color: #ffffff;
    min-width: 1440px;
}

a {
    text-decoration: none;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

/* 顶部导航样式 */
.header {
    position: relative;
    background: #ffffff;
    box-shadow: 0px 0px 8px 0px rgba(0,0,0,0.1);
    padding: 11px 0;
    z-index: 10;
}

.header-content {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    height: 42px;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo-icon {
    width: 127px;
    height: 42px;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.weather-info {
    flex: 1;
    font-weight: 400;
    font-size: 16px;
    color: #4B5563;
    line-height: 24px;
    text-align: left;
    overflow: hidden;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 280px;
    height: 32px;
    gap: 8px;
    background: #EBEFF9;
    border-radius: 16px;
    padding: 6px 12px;
}

.search-box input {
    width: 228px;
    height: 20px;
    border: none;
    background: transparent;
    outline: none;
    font-weight: 400;
    font-size: 14px;
    color: #333;
    line-height: 20px;
    flex: 1;
}

.search-box input::placeholder {
    color: #BFBFBF;
}

.search-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.search-icon-btn >img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.search-icon-btn:hover {
    color: #fa84b7;
}

.split-line {
    
}

.split-line-bg {
    width: 1px;
    height: 16px;
    margin: 0 2px;
    background: #E5E5E5;
}

.action-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    /* width: 74px; */
    height: 32px;
    padding: 0 12px;
    background: #ffffff;
    border: 1px solid #3579FF;
    border-radius: 16px;
    font-weight: 400;
    font-size: 15px;
    color: #3579FF;
    line-height: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #f5f5f5;
}

.action-btn img {
    width: 16px;
    height: 16px;
}

.download-btn {
    margin-right: 2.5px;
}

.login-btn {
    margin-left: 2.5px;
}

.download-qr {
    position: absolute;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 183px;
    height: 209px;
    top: 55px;
    left: 0px;
    background: #FFFFFF;
    box-shadow: 0px 4px 10px 0px rgba(0,0,0,0.13);
    border-radius: 8px 8px 8px 8px;
    z-index: 1000;
}

.download-btn:hover .download-qr {
    display: flex;
}

.download-qr-content {
    /* width: 130px;
    height: 130px; */
    width: 140px;
    height: 140px;
}

.download-qr-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.download-qr-title {
    font-weight: 500;
    font-size: 16px;
    color: #3D3D3D;
    line-height: 19px
}

.popup-user {
    position: absolute;
    top: 55px;
    right: -1px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    width: 183px;
    padding: 20px 17px 20px 23px;
    background: #FFFFFF;
    box-shadow: 0px 4px 10px 0px rgba(0,0,0,0.13);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1000;
}

.login-btn.show-popup .popup-user {
    display: flex;
}

.popup-user-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.popup-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 12px;
}
.popup-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-user-name {
    flex: 1;
    font-weight: 500;
    font-size: 14px;
    color: #3D3D3D;
    line-height: 16px;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.popup-user-logout {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    height: 32px;
    margin: 0 2px;
    background: rgba(53,121,255,0.1);
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 16px;
    color: #3579FF;
    line-height: 19px;
    cursor: pointer;
}
.popup-user-logout:hover {
    background: rgba(53,121,255,0.2);
}


/* 登录弹窗*/
.ysz-sdk-login-dialog .ysz-sdk-login-dialog-loginMain {
    overflow: auto !important;
}

/* 新闻卡片 */
.news-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.news-card:hover {
    /* transform: translateY(-4px); */
    /* box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); */
}

.news-card-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 比例 */
    background: #f5f5f5;
    overflow: hidden;
}

.news-card-thumbnail >img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-card:hover .news-card-thumbnail > img{
    transform: scale(1.05);
}

.news-card-live-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 52px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
    overflow: hidden;
}

.news-card-play-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
    overflow: hidden;
}

.news-card-live-icon > img, .news-card-play-icon > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.news-card-content {
    padding: 11px 0;
}

.news-card-title {
    min-height: 36px;
    font-weight: 400;
    font-size: 14px;
    color: #3D3D3D;
    line-height: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-card-meta {
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
    margin-top: 12px;
    gap: 12px;
    font-weight: 400;
    font-size: 12px;
    color: #999999;
    line-height: 14px;
}

.news-card-source {
    max-width: 130px;
    white-space: nowrap;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
}

.news-card-time {
    color: #999;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 36px;
}

.pagination-btn {
    min-width: 28px;
    height: 28px;
    padding: 0 12px;
    background: #ffffff;
    border: none;
    outline: none;
    border-radius: 4px;
    font-weight: 400;
    font-size: 16px;
    color: #999999;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn svg {
    width: 26px;
    height: 26px;
}

.pagination-prev-btn, .pagination-next-btn{
    font-size: 20px;
    color: #2E3033;
}

.pagination-btn:hover:not(.disabled):not(.active) {
    color: #EC2D64;
}

.pagination-btn.active {
    color: #EC2D64;
    font-weight: 500;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 底部样式 */
.footer {

}

/* 通用工具类 */
.loading {
    text-align: center;
    padding: 40px 0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #fa84b7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 40px 0;
}

/* 错误状态样式 */
.error-state {
    text-align: center;
    padding: 40px 0;
}
/*单行省略号样式*/
.ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

