/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: rgba(232, 65, 57, 1);
    --color-primary-dark: rgba(212, 42, 34, 1);
    --color-accent: #E85A52;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

a:hover {
    color: #c0392b;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.header-top {
    background-color: var(--color-primary);
    height: 40px;
    line-height: 40px;
    color: #fff;
    font-size: 13px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
}

.header-main {
    padding: 15px 0;
}

.header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-width: 600px;
    height: auto;
}

.logo h1 {
    font-size: 24px;
    color: var(--color-primary);
    margin-left: 15px;
}

/* 头部右侧区域 */
.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.header-slogan {
    width: 100%;
    text-align: right;
    font-size: 18px;
    color: #666;
    letter-spacing: 2px;
    font-weight: 500;
}

.header-contact-bar {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-tel {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
    line-height: 1.2;
}

.header-tel span {
    font-size: 12px;
    color: #999;
}

.header-tel a {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.header-tel a:hover {
    color: var(--color-primary-dark);
}

/* 搜索框 */
.search-box {
    display: flex;
    align-items: center;
    width: 320px;
    height: 48px;
    border: 1px solid #ddd;
    border-radius: 25px;
    background-color: #fff;
    padding: 3px;
}

.search-form {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.search-form label {
    flex: 1;
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
}

.search-form input {
    flex: 1;
    width: 100%;
    height: 100%;
    padding: 0 15px;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
    border-radius: 25px;
}

.search-form button {
    height: 42px;
    padding: 0 22px;
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    border-radius: 20px;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.search-form button:hover {
    background-color: var(--color-primary-dark);
}

/* 官方微信 */
.wechat-official {
    position: relative;
    display: inline-block;
}

.wechat-text {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    padding: 4px 0;
}

.wechat-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    filter: invert(48%) sepia(89%) saturate(1573%) hue-rotate(85deg);
}

/* 微信二维码 - 默认隐藏 */
.wechat-qrcode {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 200;
    text-align: center;
    min-width: 200px;
}

.wechat-qrcode img {
    width: 200px;
    height: auto;
    border-radius: 4px;
}

.wechat-qrcode p {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}

/* 鼠标悬停显示二维码 */
.wechat-official:hover .wechat-qrcode {
    display: block;
}

/* 二维码上方小三角 */
.wechat-qrcode::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 10px;
    height: 10px;
    background-color: #fff;
    border-left: 1px solid #eee;
    border-top: 1px solid #eee;
    transform: rotate(45deg);
}

/* 导航样式 */
.nav {
    background-color: var(--color-primary);
}

.nav .container {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: block;
    padding: 0 30px;
    height: 50px;
    line-height: 50px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
}

.nav-item:hover > a {
    background-color: var(--color-primary-dark);
}

.nav-item.active > a {
    background-color: var(--color-primary-dark);
}

.sub-nav {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 100;
    border-top: 2px solid var(--color-accent);
}

.nav-item:hover .sub-nav {
    display: block;
}

.sub-nav a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.sub-nav a:last-child {
    border-bottom: none;
}

.sub-nav a:hover {
    background-color: #f9f9f9;
    color: #c0392b;
}

/* Banner 样式 */
.banner {
    position: relative;
    height: 450px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.banner-slide.active {
    display: block;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.banner-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.banner-dots .dot.active {
    background-color: #fff;
}

/* 首页内容区块 */
.section {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #c0392b;
}

.section-title p {
    color: #999;
    font-size: 14px;
}

/* 热点推荐 */
.news-section {
    background-color: #fff;
}

/* Grid 比例改为 3:2（左侧60%，右侧40%） */
.news-grid {
    display: grid;
    grid-template-columns: 711px 1fr;
    gap: 30px;
    align-items: stretch;
}

.news-featured {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    min-width: 0;
}

/* 图片填满容器 */
.news-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 轮播文字叠加层 */
.news-featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    z-index: 2;
}

.news-featured-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* 右侧列表与左侧等高 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    min-width: 0; /* 防止撑大 Grid 轨道 */
}

/* 每条自动均分高度 */
.news-item {
    flex: 1;
    display: flex;
    gap: 15px;
    padding: 12px 15px;
    background-color: #f9f9f9;
    border-radius: 6px;
    transition: all 0.3s;
    min-height: 0;
    min-width: 0; /* 防止 flex 子元素被内容撑大 */
    overflow: hidden;
}

.news-item-content {
    flex: 1;
    min-width: 0; /* 关键：让长文本可以截断收缩 */
    overflow: hidden;
}

.news-item:hover {
    background-color: #f0f0f0;
}

/* 头条新闻项突出显示 */
.news-item-top {
    background-color: #fff8f8;
    border-left: 3px solid var(--color-primary);
}

/* 标签容器 */
.news-item-badge {
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* "热点"标签 - 醒目样式 */
.news-item-badge .badge-hot {
    display: inline-block;
    padding: 20px 12px;
    background: linear-gradient(180deg, #ff2b4d, #ff5e3a);
    color: #fff;
    font-size: 13px;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    line-height: 1;
}

/* 标题限制单行，超出省略 */
.news-item-content h4 {
    font-size: 15px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 描述限制单行，超出省略 */
.news-item-content p {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

/* 专家列表 */
.expert-section {
    background-color: #f9f9f9;
}

.expert-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.expert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.expert-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    object-fit: cover;
    border: 3px solid #f0f0f0;
}

.expert-card h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.expert-card p {
    font-size: 13px;
    color: #666;
}

/* 页面布局 */
.page-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    padding: 30px 0;
    min-height: 500px;
}

/* 侧边栏 */
.sidebar {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    height: fit-content;
}

.sidebar-header {
    background-color: var(--color-primary);
    color: #fff;
    padding: 20px;
    text-align: center;
}

.sidebar-header h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.sidebar-header p {
    font-size: 12px;
    opacity: 0.8;
    text-transform: uppercase;
}

.sidebar-menu {
    padding: 10px 0;
}

.sidebar-menu a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    position: relative;
    padding-left: 30px;
}

.sidebar-menu a::before {
    content: '•';
    position: absolute;
    left: 15px;
    color: #c0392b;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: #f9f9f9;
    color: #c0392b;
}

/* 内容区域 */
.content-area {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    min-height: 500px;
}

/* 面包屑 */
.breadcrumb {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    color: #666;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #c0392b;
}

.breadcrumb span {
    margin: 0 5px;
    color: #999;
}

.breadcrumb .current {
    color: #c0392b;
}

/* 文章列表 */
.article-list {
    display: flex;
    flex-direction: column;
}

.article-item {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    gap: 20px;
}

.article-item:last-child {
    border-bottom: none;
}

.article-item-date {
    min-width: 80px;
    text-align: center;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 6px;
    height: fit-content;
}

.article-item-date .day {
    font-size: 32px;
    font-weight: bold;
    color: #c0392b;
    line-height: 1;
}

.article-item-date .month {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

.article-item-content h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

.article-item-content h4 a:hover {
    color: #c0392b;
}

.article-item-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 专家列表页 */
.expert-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.expert-list-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s;
}

.expert-list-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.expert-list-item img {
    width: 100px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

.expert-list-item .info h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.expert-list-item .info .title {
    color: #c0392b;
    font-size: 13px;
    margin-bottom: 8px;
}

.expert-list-item .info p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
}

.pagination a:hover,
.pagination a.active {
    background-color: #c0392b;
    color: #fff;
    border-color: #c0392b;
}

/* 文章详情 */
.article-detail h1 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.article-meta {
    color: #999;
    font-size: 13px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
}

.article-detail-body {
    font-size: 15px;
    line-height: 2;
    color: #333;
}

.article-detail-body p {
    margin-bottom: 15px;
    text-indent: 2em;
}

.article-detail-body img {
    display: block;
    margin: 0 auto;
}

/* 单页内容 */
.page-content h2 {
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    color: #333;
}

.page-content p {
    margin-bottom: 15px;
    line-height: 2;
    text-indent: 2em;
    color: #333;
}

/* 联系我们 */
.contact-info {
    padding: 20px 0;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 6px;
}

.contact-info-item .icon {
    width: 50px;
    height: 50px;
    background-color: #c0392b;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
}

.contact-info-item .text h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-info-item .text p {
    color: #666;
    font-size: 14px;
}

/* 页脚 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #555;
}

.footer-section p,
.footer-section a {
    color: #aaa;
    font-size: 13px;
    line-height: 2;
}

.footer-section a:hover {
    color: #fff;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #999;
    font-size: 13px;
}

.footer-bottom a {
    color: #ccc;
}

.footer-bottom a:hover {
    color: #fff;
}

/* 专家团队两栏布局 */
.expert-two-column {
    display: flex;
    gap: 0;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.expert-column {
    flex: 1;
    padding: 30px;
    min-width: 0;
}

.expert-column-title {
    text-align: center;
    margin-bottom: 25px;
}

.expert-column-title h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 6px;
}

.expert-column-title p {
    font-size: 13px;
    color: #999;
}

.expert-column-divider {
    width: 1px;
    background: linear-gradient(to bottom, transparent, #e0e0e0 20%, #e0e0e0 80%, transparent);
    margin: 30px 0;
}

/* Swiper 新闻轮播 */
.news-swiper {
    border-radius: 8px;
    overflow: hidden;
}

.news-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-swiper .swiper-pagination {
    bottom: 10px;
}

.news-swiper .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}

.news-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--color-primary);
}

/* Swiper 专家轮播 */
.expert-swiper {
    position: relative;
    padding: 0 30px;
}

.expert-swiper .swiper-slide {
    height: auto;
}

.expert-swiper .swiper-button-prev,
.expert-swiper .swiper-button-next {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #999;
}

.expert-swiper .swiper-button-prev:hover,
.expert-swiper .swiper-button-next:hover {
    border-color: #c0392b;
    color: #c0392b;
}

.expert-swiper .swiper-button-prev::after,
.expert-swiper .swiper-button-next::after {
    font-size: 12px;
}

.expert-swiper .swiper-button-prev {
    left: 0;
}

.expert-swiper .swiper-button-next {
    right: 0;
}

.expert-swiper .swiper-button-prev,
.expert-swiper .swiper-button-next {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.expert-swiper:hover .swiper-button-prev,
.expert-swiper:hover .swiper-button-next {
    opacity: 1;
    visibility: visible;
}

/* 响应式 */
@media (max-width: 1024px) {
    .container {
        width: 100%;
        padding: 0 10px;
    }

    .page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav .container {
        flex-wrap: wrap;
    }

    .nav-item > a {
        padding: 0 15px;
        font-size: 13px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .expert-list {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* 上一篇/下一篇导航 */
.ep-show-prevnext-wrap {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.fc-show-prev-next {
    font-size: 14px;
    color: #666;
    line-height: 2;
    margin: 0;
}

.fc-show-prev-next strong {
    color: #333;
    font-weight: 500;
}

.fc-show-prev-next a {
    color: #c0392b;
    transition: color 0.3s;
}

.fc-show-prev-next a:hover {
    color: #a93226;
    text-decoration: underline;
}