/* ==========================================================================
   世纪英才 新闻页 - 样式
   模板：template/index/default/list/news.html
   ========================================================================== */

:root {
    --yc-news-container: 1200px;
    --yc-news-nav-w: 200px;
    --yc-news-content-w: 590px;
    --yc-news-right-w: 320px;
    --yc-news-gap: 40px;
    --yc-news-blue: #003371;
    --yc-news-orange: #DDA054;
    --yc-news-text: #001b2e;
    --yc-news-text-sub: #666;
    --yc-news-bg-card: #ffffff;
    --yc-news-bg-gray: #f4f6fa;
    --yc-news-border: #e8eaed;
    --yc-news-radius: 4px;
}

.yc-news-hero {
    width: 100%;
    height: 600px;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.yc-news-hero-media {
    width: 100%;
    height: 100%;
}

.yc-news-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.yc-news-hero-img-empty {
    background: #f5f5f5;
}

.yc-news-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.22) 46%, rgba(0, 0, 0, 0) 75%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.yc-news-hero-content {
    width: 1200px;
    max-width: calc(100% - 40px);
    margin: 0 auto;
    padding: 0 20px;
    color: #ffffff;
    text-align: center;
}

.yc-news-hero-en {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.92;
}

.yc-news-hero-cn {
    margin-top: 12px;
    font-size: 44px;
    line-height: 1.15;
    font-weight: 700;
}

/* ==================== 面包屑 ==================== */
.yc-news-crumb {
    background: #f5f5f5;
    border-bottom: 1px solid #efefef;
    padding: 16px 0;
    margin-top: 0;
}

.yc-news-container.yc-breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.yc-news-page .el-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
    line-height: 1;
    color: #666666;
}

.yc-news-page .el-breadcrumb__item {
    display: inline-flex;
    align-items: center;
}

.yc-news-page .el-breadcrumb__inner {
    color: #333333;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
}

.yc-news-page .el-breadcrumb__inner.is-link {
    color: #666666;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.yc-news-page .el-breadcrumb__inner.is-link:hover {
    color: #003371;
}

.yc-news-page .el-breadcrumb__separator {
    margin: 0 12px;
    color: #c4c4c4;
    font-weight: 400;
    font-size: 12px;
    line-height: 1;
}

.yc-news-page .el-breadcrumb__item:last-child .el-breadcrumb__inner,
.yc-news-page .el-breadcrumb__item:last-child .el-breadcrumb__inner.is-link {
    color: #333333;
    cursor: text;
    font-weight: 400;
}

.yc-news-page .el-breadcrumb__item:last-child .el-breadcrumb__separator {
    display: none;
}

/* ==================== 主体三栏 ==================== */
.yc-news-main {
    background: #ffffff;
    padding: 60px 0 60px;
}

.yc-news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: var(--yc-news-gap);
    align-items: flex-start;
}

.yc-news-nav {
    flex: 0 0 var(--yc-news-nav-w);
    max-width: var(--yc-news-nav-w);
    min-width: 0;
}

.yc-news-left {
    flex: 0 0 var(--yc-news-content-w);
    max-width: var(--yc-news-content-w);
    min-width: 0;
}

.yc-news-right {
    flex: 0 0 var(--yc-news-right-w);
    max-width: var(--yc-news-right-w);
    min-width: 0;
}

/* ==================== 分类导航（侧边栏） ==================== */
.yc-news-category {
    background: #ffffff;
    border-radius: var(--yc-news-radius);
    overflow: hidden;
    width: 100%;
    border: 1px solid #ededed;
}

.yc-news-category-nav {
    display: flex;
    flex-direction: column;
}

.yc-news-category .yc-news-side-title {
    padding: 22px 24px;
    font-size: 20px;
    line-height: 1.2;
    text-align: left;
    border-bottom: 1px solid #ededed;
}

.yc-news-category-item {
    display: block;
    width: 100%;
    padding: 16px 24px;
    border: 0;
    background: #F4F4F4;
    color: #666666;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    cursor: pointer;
    text-align: left;
    position: relative;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.yc-news-category-item + .yc-news-category-item {
    border-top: 1px solid #ffffff;
}

.yc-news-category-item:hover {
    background: #EBEAEA;
}

.yc-news-category-item.active {
    background: #EBEAEA;
    color: #E68A00;
    font-weight: 500;
}

.yc-news-category-item.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #E68A00;
}

/* ==================== 标签导航（已弃用，保留兼容） ==================== */
.yc-news-tabs-wrap {
    background: #ffffff;
    padding: 0 30px;
    border-radius: var(--yc-news-radius);
    margin-bottom: 20px;
}

.yc-news-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.yc-news-tabs::-webkit-scrollbar {
    height: 0;
}

.yc-news-tab {
    height: 60px;
    padding: 0 10px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #4f5b67;
    font-size: 15px;
    font-weight: 500;
    line-height: 57px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.yc-news-tab:hover,
.yc-news-tab.active {
    color: #003371;
    border-bottom-color: #003371;
}

/* ==================== 文章列表 ==================== */
.yc-news-panels {
    min-height: 0;
}

.yc-news-panel {
    display: none;
}

.yc-news-panel.is-active {
    display: block;
}

.yc-news-panel.has-pager {
    display: block;
}

.yc-news-panel.has-pager .yc-news-item-list {
    overflow: hidden;
}

.yc-news-list-head {
    margin-bottom: 24px;
}

.yc-news-list-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.4;
    font-weight: 700;
    color: #003371;
}

.yc-news-item-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.yc-news-item {
    display: flex;
    flex-direction: column;
    width: 590px;
    height: 130px;
    padding: 18px 24px 16px;
    border: 1px solid #F0F0F0;
    background: #FFFFFF;
    box-sizing: border-box;
    text-decoration: none;
    transition: border-color 0.2s ease, border-width 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.yc-news-item,
.yc-news-item:hover,
.yc-news-item:focus,
.yc-news-item:active {
    text-decoration: none;
}

.yc-news-item:hover,
.yc-news-item:focus,
.yc-news-item:active {
    border: 1px solid #003371;
    box-shadow: 0 8px 20px rgba(0, 51, 113, 0.12);
    background: #ffffff;
}

.yc-news-item-title {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 700;
    color: #222222;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    transition: color 0.2s ease;
}

.yc-news-item:hover .yc-news-item-title {
    color: #003371;
}

.yc-news-item-desc {
    margin: 0 0 8px;
    color: #666666;
    font-size: 13px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.yc-news-item-date {
    display: inline-block;
    margin-top: auto;
    color: #999999;
    font-size: 13px;
    line-height: 1;
}

.yc-news-panel-empty {
    padding: 72px 20px;
    background: #ffffff;
    color: #8b95a1;
    font-size: 15px;
    text-align: center;
    border-radius: var(--yc-news-radius);
}

.yc-news-pager {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 2px;
    flex-wrap: wrap;
}

.yc-news-pager.is-visible {
    display: flex;
}

.yc-news-page-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #d9e0e8;
    background: #ffffff;
    color: #4b5563;
    font-size: 13px;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.yc-news-page-btn:hover,
.yc-news-page-btn.is-active {
    border-color: #003371;
    background: #003371;
    color: #ffffff;
}

.yc-news-page-btn.is-disabled {
    opacity: 0.4;
    cursor: default;
}

/* ==================== 侧边栏 ==================== */
.yc-news-side-block {
    background: #ffffff;
    border-radius: var(--yc-news-radius);
    overflow: hidden;
}

.yc-news-side-block + .yc-news-side-block {
    margin-top: 20px;
}

.yc-news-side-title {
    margin: 0;
    padding: 20px 24px;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 700;
    color: #10233b;
    border-bottom: 1px solid #eceff3;
}

/* ==================== 活动面板 ==================== */
.yc-news-right-panel {
    width: 100%;
    border: 1px solid #f0f0f0;
    background: #ffffff;
    overflow: visible;
}

.yc-news-activity {
    width: 100%;
    background: #ffffff;
}

.yc-news-activity-title {
    position: relative;
    margin: 0;
    padding: 22px 20px 18px 32px;
    color: #003371;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;
}

.yc-news-activity-title::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 50%;
    width: 4px;
    height: 20px;
    background: #003371;
    transform: translateY(-50%);
}

.yc-news-activity-body {
    padding: 0 20px 12px;
}

.yc-news-activity-item {
    display: block;
    padding: 16px 0 14px;
    border-top: 1px solid #f0f0f0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.yc-news-activity-item,
.yc-news-activity-item:hover,
.yc-news-activity-item:focus,
.yc-news-activity-item:active {
    text-decoration: none;
}

.yc-news-activity-item:hover,
.yc-news-activity-item:focus,
.yc-news-activity-item:active {
    background: transparent;
}

.yc-news-activity-item-title {
    margin: 0 0 8px;
    color: #000000;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.yc-news-activity-item:hover .yc-news-activity-item-title {
    color: #003371;
}

.yc-news-activity-item-desc {
    margin: 0 0 8px;
    color: #777777;
    font-size: 12px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.yc-news-activity-item:hover .yc-news-activity-item-desc,
.yc-news-activity-item:focus .yc-news-activity-item-desc,
.yc-news-activity-item:active .yc-news-activity-item-desc {
    color: #003371;
}

.yc-news-activity-item-date {
    color: #999999;
    font-size: 11px;
    line-height: 1;
}

.yc-news-activity-empty {
    padding: 18px 0 8px;
    color: #999999;
    font-size: 12px;
    line-height: 1.6;
}

/* ==================== 项目推荐 ==================== */
.yc-news-project-recommend {
    width: 100%;
    background: #ffffff;
}

.yc-news-project-title {
    position: relative;
    margin: 0;
    padding: 22px 20px 18px 32px;
    color: #111111;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;
}

.yc-news-project-title::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 50%;
    width: 4px;
    height: 20px;
    background: #003371;
    transform: translateY(-50%);
}

.yc-news-project-body {
    padding: 0 20px 20px;
}

.yc-news-project-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 0 16px;
    margin-top: 10px;
    background: #DA9846;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.yc-news-project-item,
.yc-news-project-item:hover,
.yc-news-project-item:focus,
.yc-news-project-item:active {
    text-decoration: none;
}

.yc-news-project-item:hover,
.yc-news-project-item:focus,
.yc-news-project-item:active {
    background: #FF9C22;
    transform: translateX(3px);
}

.yc-news-project-text {
    flex: 1 1 auto;
    min-width: 0;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yc-news-project-arrow {
    flex: 0 0 auto;
    color: #ffffff;
    font-size: 16px;
    line-height: 1;
}

.yc-news-project-empty {
    padding-top: 14px;
    color: #999999;
    font-size: 12px;
    line-height: 1.6;
}

/* ==================== 立即咨询 ==================== */
.yc-news-consult {
    position: relative;
    padding: 24px 20px 20px;
    overflow: visible;
}

.yc-news-consult-title {
    display: inline-block;
    margin: 0 0 18px;
    padding-bottom: 10px;
    color: #003371;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
    position: relative;
}

.yc-news-consult-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: #003371;
    border-radius: 2px;
    display: block;
}

.yc-news-consult-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.yc-news-consult-form .yc-test-field {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
    border: none;
    border-radius: 5px;
    background: #f7f8fa;
    padding: 0 14px;
    min-height: 44px;
    height: 44px;
}

.yc-news-consult-form .yc-test-field-prefix {
    width: 120px;
    flex-shrink: 0;
    text-align: left;
    padding-right: 8px;
    font-size: 13px;
    color: #555555;
    font-weight: 600;
    margin-right: 0;
}

.yc-news-consult-form .yc-test-field-short .yc-test-field-prefix {
    width: 84px;
}

.yc-news-consult-form .yc-test-cs {
    flex: 1;
    min-width: 0;
    height: 100%;
    position: relative;
}

.yc-news-consult-form .yc-test-field-text,
.yc-news-consult-form .yc-test-cs-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    height: 44px;
    background: transparent;
    border: none;
    border-radius: 5px;
    padding: 0 26px 0 0;
    font-size: 13px;
    color: #161616;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.2s ease;
}

.yc-news-consult-form .yc-test-cs-trigger.is-selected {
    color: #333333;
}

.yc-news-consult-form .yc-test-field-text:focus,
.yc-news-consult-form .yc-test-cs-trigger:focus {
    outline: none;
    background: transparent;
}

.yc-news-consult-form .yc-test-field-text::placeholder,
.yc-news-consult-form .yc-test-cs-text {
    color: #a9a9a9;
    font-size: 13px;
}

.yc-news-consult-form .yc-test-cs-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' fill='none' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
    transition: transform 0.25s ease;
    pointer-events: none;
}

.yc-news-consult-form .yc-test-cs.is-open .yc-test-cs-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.yc-news-consult-form .yc-test-cs-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    min-width: 180px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
    padding: 6px 0;
    z-index: 1000;
    display: none;
}

.yc-news-consult-form .yc-test-cs-dropdown::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #ffffff;
    filter: drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.04));
}

.yc-news-consult-form .yc-test-cs.is-open .yc-test-cs-dropdown {
    display: block;
}

.yc-news-consult-form .yc-test-cs-options {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 240px;
    overflow-y: auto;
}

.yc-news-consult-form .yc-test-cs-option {
    padding: 10px 16px;
    font-size: 13px;
    color: #333333;
    cursor: pointer;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.yc-news-consult-form .yc-test-cs-option:hover {
    background: #f5f7fa;
}

.yc-news-consult-form .yc-test-cs-option.is-selected {
    color: #0077b6;
    background: #eaf6fb;
}

.yc-news-consult-submit {
    display: block;
    width: 100%;
    height: 44px;
    margin-top: 4px;
    background: #e8954a;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0;
    padding-left: 0;
    transition: background 0.2s ease, transform 0.1s ease;
}

.yc-news-consult-submit:hover {
    background: #dd8640;
}

.yc-news-consult-submit:active {
    transform: translateY(1px);
}

/* ==================== 政策解读 ==================== */
.yc-news-policy-push {
    width: 100%;
    border: 1px solid #f0f0f0;
    background: #ffffff;
    padding: 22px 20px 18px;
}

.yc-news-policy-push-title {
    position: relative;
    margin: 0 0 22px;
    padding-left: 12px;
    color: #111111;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;
}

.yc-news-policy-push-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 20px;
    background: #003371;
    transform: translateY(-50%);
}

.yc-news-policy-push-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.yc-news-policy-push-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.yc-news-policy-push-item,
.yc-news-policy-push-item:hover,
.yc-news-policy-push-item:focus,
.yc-news-policy-push-item:active {
    text-decoration: none;
}

.yc-news-policy-push-item.is-fallback {
    cursor: default;
}

.yc-news-policy-push-item.is-fallback .yc-news-policy-push-dot {
    background: #d4d4d4;
}

.yc-news-policy-push-item.is-fallback .yc-news-policy-push-text {
    color: #7d7d7d;
}

.yc-news-policy-push-dot {
    flex: 0 0 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #bdbdbd;
}

.yc-news-policy-push-text {
    flex: 1 1 auto;
    min-width: 0;
    color: #222222;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.yc-news-policy-push-item:hover .yc-news-policy-push-text,
.yc-news-policy-push-item:focus .yc-news-policy-push-text,
.yc-news-policy-push-item:active .yc-news-policy-push-text {
    color: #003371;
}

.yc-news-policy-push-empty {
    color: #999999;
    font-size: 12px;
    line-height: 1.6;
}

/* ==================== 联系我们 ==================== */
.yc-news-contact-body {
    padding: 10px 24px 24px;
}

.yc-news-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
}

.yc-news-contact-item + .yc-news-contact-item {
    border-top: 1px solid #eceff3;
}

.yc-news-contact-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f7ff;
    border-radius: 6px;
}

.yc-news-contact-icon img {
    width: 20px;
    height: 20px;
    display: block;
}

.yc-news-contact-text {
    flex: 1 1 0;
    min-width: 0;
}

.yc-news-contact-label {
    margin: 0 0 6px;
    color: #999;
    font-size: 13px;
    line-height: 1.4;
}

.yc-news-contact-value {
    margin: 0;
    color: #10233b;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
}

/* ==================== 响应式适配 ==================== */
@media (max-width: 1200px) {
    :root {
        --yc-news-nav-w: 180px;
        --yc-news-content-w: calc(100% - 530px - 60px);
        --yc-news-right-w: 320px;
        --yc-news-gap: 30px;
    }

    .yc-news-hero {
        height: 480px;
    }

    .yc-news-article-thumb {
        flex-basis: 220px;
        width: 220px;
        height: 160px;
    }
}

@media (max-width: 992px) {
    .yc-news-hero {
        height: 380px;
    }

    .yc-news-container {
        flex-direction: column;
    }

    .yc-news-nav,
    .yc-news-left,
    .yc-news-right {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    .yc-news-left,
    .yc-news-right {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --yc-news-gap: 15px;
    }

    .yc-news-hero {
        height: 280px;
    }

    .yc-news-hero-cn {
        font-size: 30px;
    }

    .yc-news-hero-en {
        font-size: 14px;
    }

    .yc-news-main {
        padding: 20px 0 40px;
    }

    .yc-news-tabs-wrap {
        padding: 0 20px;
    }

    .yc-news-tab {
        height: 54px;
        line-height: 51px;
        font-size: 14px;
        padding: 0 8px;
    }

    .yc-news-item {
        width: 100%;
        height: auto;
        min-height: 130px;
        padding: 16px 18px;
    }

    .yc-news-side-title {
        padding: 16px 20px;
    }

    .yc-news-hot-item a {
        padding: 10px 20px;
    }

    .yc-news-contact-body {
        padding: 6px 20px 20px;
    }
}

@media (max-width: 480px) {
    .yc-news-hero {
        height: 220px;
    }
}
