/* 新闻详情页面专用样式 - 避免与其他页面冲突 */

/* 文章头部 */
.nd-article-header {
    background: var(--gradient-1);
    padding: 60px 20px 40px;
    color: white;
}

.nd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.nd-breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}.nd-article-content h3

.nd-breadcrumb a:hover {
    opacity: 0.7;
}

.nd-breadcrumb span {
    color: rgba(255, 255, 255, 0.7);
}

.nd-article-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.4;
    max-width: 900px;
}

.nd-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    font-size: 14px;
    opacity: 0.9;
}

.nd-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nd-meta-item i {
    font-size: 14px;
}

/* 内容布局 */
.nd-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-top: 40px;
}

/* 主内容区 */
.nd-main-content {
    background: white;
}

.nd-article-body {
    background: white;
    padding: 40px;
    border-radius: 5px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* 文章摘要 */
.nd-article-summary {
    background: linear-gradient(135deg, rgba(0, 169, 236, 0.05) 0%, rgba(139, 0, 0, 0.05) 100%);
    padding: 25px;
    border-radius: 5px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 35px;
}

.nd-article-summary p {
    color: var(--text-dark);
    line-height: 1.9;
    font-size: 16px;
    margin: 0;
    font-weight: 500;
}

/* 文章正文 */
.nd-article-content {
    color: var(--text-dark);
    line-height: 1.9;
    font-size: 16px;
}

.nd-article-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 20px;
    color: var(--text-dark);
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 169, 236, 0.2);
}

.nd-article-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 30px 0 15px;
    color: var(--text-dark);
}
.nd-article-content a{
    text-decoration:none;
    color:var(--text-dark);
}

.nd-article-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.nd-article-content ul,
.nd-article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.nd-article-content li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.nd-article-content strong {
    color: var(--primary-color);
    font-weight: 700;
}

.nd-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 25px 0;
}

/* 文章标签 */
.nd-article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.nd-tags-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
}

.nd-tag {
    padding: 8px 18px;
    background: rgba(0, 169, 236, 0.08);
    color: var(--primary-color);
    border-radius: 5px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(0, 169, 236, 0.15);
}

.nd-tag:hover {
    background: var(--gradient-1);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

/* 分享按钮 */
.nd-article-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 5px;
}

.nd-share-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
}

.nd-share-btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nd-share-wechat {
    background: #07c160;
    color: white;
}

.nd-share-wechat:hover {
    background: #06ad56;
    transform: translateY(-2px);
}

.nd-share-weibo {
    background: #e6162d;
    color: white;
}

.nd-share-weibo:hover {
    background: #d01428;
    transform: translateY(-2px);
}

.nd-share-qq {
    background: #12b7f5;
    color: white;
}

.nd-share-qq:hover {
    background: #0fa3db;
    transform: translateY(-2px);
}

/* 上一篇/下一篇 */
.nd-article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.nd-nav-item {
    padding: 25px;
    background: white;
    border-radius: 5px;
    border: 1px solid rgba(0, 169, 236, 0.15);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nd-nav-item:hover {
    background: linear-gradient(135deg, rgba(0, 169, 236, 0.05) 0%, rgba(139, 0, 0, 0.05) 100%);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.nd-nav-label {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 600;
}

.nd-nav-title {
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.5;
}

.nd-nav-prev .nd-nav-label::before {
    content: '← ';
}

.nd-nav-next {
    text-align: right;
}

.nd-nav-next .nd-nav-label::after {
    content: ' →';
}

/* 相关文章 */
.nd-related-articles {
    margin-top: 50px;
    padding: 40px;
    background: var(--bg-light);
    border-radius: 5px;
}

.nd-related-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-dark);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.nd-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.nd-related-item {
    background: white;
    border-radius: 5px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.nd-related-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.nd-related-image {
    height: 150px;
    overflow: hidden;
}

.nd-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.nd-related-item:hover .nd-related-image img {
    transform: scale(1.1);
}

.nd-related-item h4 {
    padding: 15px 15px 10px;
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.5;
    font-weight: 600;
}

.nd-related-item p {
    padding: 0 15px 15px;
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

/* 侧边栏 */
.nd-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.nd-sidebar-widget {
    background: white;
    padding: 30px;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
}

.nd-widget-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

.nd-widget-title::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--secondary-color);
}

/* 热门文章 */
.nd-hot-list {
    list-style: none;
    padding: 0;
}

.nd-hot-item {
    margin-bottom: 15px;
}

.nd-hot-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
    padding: 10px;
    border-radius: 10px;
}

.nd-hot-item a:hover {
    background: rgba(0, 169, 236, 0.05);
    color: var(--primary-color);
}

.nd-hot-number {
    width: 28px;
    height: 28px;
    background: var(--gradient-1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.nd-hot-item:nth-child(1) .nd-hot-number {
    background: var(--gradient-1);
}

.nd-hot-item:nth-child(2) .nd-hot-number {
    background: var(--gradient-2);
}

.nd-hot-item:nth-child(3) .nd-hot-number {
    background: var(--gradient-3);
}

.nd-hot-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

/* 最新文章 */
.nd-latest-list {
    list-style: none;
    padding: 0;
}

.nd-latest-item {
    margin-bottom: 15px;
}

.nd-latest-item a {
    display: flex;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s;
    padding: 10px;
    border-radius: 10px;
}

.nd-latest-item a:hover {
    background: rgba(102, 126, 234, 0.05);
}

.nd-latest-image {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.nd-latest-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nd-latest-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nd-latest-info h4 {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
    font-weight: 600;
    margin: 0;
}

.nd-latest-info span {
    font-size: 12px;
    color: var(--text-light);
}

/* 联系咨询 */
.nd-contact-widget {
    background: var(--gradient-1);
    color: white;
}

.nd-contact-widget .nd-widget-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.nd-contact-widget .nd-widget-title::before {
    background: white;
}

.nd-contact-desc {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
    opacity: 0.95;
}

.nd-contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.nd-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.nd-contact-item i {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nd-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 25px;
    background: white;
    color: var(--primary-color);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.nd-contact-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 服务介绍模块 */
.nd-services-section {
    margin-top: 50px;
    padding: 45px;
    background: linear-gradient(135deg, rgba(0, 169, 236, 0.02) 0%, rgba(139, 0, 0, 0.02) 100%);
    border-radius: 5px;
    border: 1px solid rgba(0, 169, 236, 0.1);
}

.nd-services-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 10px;
}

.nd-services-subtitle {
    font-size: 15px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 40px;
}

.nd-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.nd-service-card {
    background: white;
    padding: 30px;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.nd-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.nd-service-card:hover::before {
    transform: scaleX(1);
}

.nd-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 169, 236, 0.15);
    border-color: rgba(0, 169, 236, 0.3);
}

.nd-service-card:nth-child(2)::before {
    background: var(--gradient-1);
}

.nd-service-card:nth-child(3)::before {
    background: var(--gradient-1);
}

.nd-service-card:nth-child(4)::before {
    background: var(--gradient-1);
}

.nd-service-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.nd-service-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.nd-service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.nd-service-features li {
    font-size: 13px;
    color: var(--text-dark);
    padding: 8px 0 8px 20px;
    position: relative;
    line-height: 1.6;
}

.nd-service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.nd-service-link {
    display: inline-block;
    padding: 10px 25px;
    background: var(--gradient-1);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nd-service-link:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 169, 236, 0.3);
}

.nd-service-card:nth-child(2) .nd-service-link {
    background: var(--gradient-1);
}

.nd-service-card:nth-child(3) .nd-service-link {
    background: var(--gradient-1);
}

.nd-service-card:nth-child(4) .nd-service-link {
    background: var(--gradient-1);
}

.nd-service-card:nth-child(2) .nd-service-features li::before {
    background: var(--primary-color);
}

.nd-service-card:nth-child(3) .nd-service-features li::before {
    background: var(--primary-color);
}

.nd-service-card:nth-child(4) .nd-service-features li::before {
    background: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .nd-content-wrapper {
        grid-template-columns: 1fr;
    }

    .nd-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .nd-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nd-services-grid {
        grid-template-columns: 1fr;
    }

    .nd-services-section {
        padding: 35px 25px;
    }
}

@media (max-width: 768px) {
    .nd-article-title {
        font-size: 26px;
    }

    .nd-article-meta {
        gap: 15px;
    }

    .nd-article-body {
        padding: 25px;
    }

    .nd-article-content h2 {
        font-size: 22px;
    }

    .nd-article-content h3 {
        font-size: 18px;
    }

    .nd-article-nav {
        grid-template-columns: 1fr;
    }

    .nd-nav-next {
        text-align: left;
    }

    .nd-related-grid {
        grid-template-columns: 1fr;
    }

    .nd-sidebar {
        grid-template-columns: 1fr;
    }

    .nd-services-section {
        padding: 25px 20px;
        margin-top: 30px;
    }

    .nd-services-title {
        font-size: 22px;
    }

    .nd-services-subtitle {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .nd-service-card {
        padding: 25px 20px;
    }

    .nd-service-name {
        font-size: 18px;
    }

    .nd-service-desc {
        font-size: 13px;
    }

    .nd-service-features li {
        font-size: 12px;
    }
}

