/* 新闻中心页面专用样式 - 主色调优化版 */

/* 页面横幅 */
.nw-page-banner {
    background: var(--gradient-1);
    padding: 100px 20px 80px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.nw-page-banner::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: rgba(0, 169, 236, 0.15);
    border-radius: 50%;
    bottom: -100px;
    left: -80px;
    animation: nw-float 15s ease-in-out infinite;
}

@keyframes nw-float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(50px, -50px); }
}

.nw-banner-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.nw-banner-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.nw-banner-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.nw-breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    opacity: 0.9;
}

.nw-breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nw-breadcrumb a:hover {
    opacity: 0.7;
}

/* 分类标签 */
.nw-category-section {
    padding: 40px 20px;
    background: linear-gradient(180deg, #fff 0%, #f0f9ff 100%);
}

.nw-category-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.nw-category-btn {
    padding: 12px 30px;
    background: white;
    border: 1px solid #00A9EC;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    color: #00A9EC;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.nw-category-btn:hover {
    background: linear-gradient(135deg, #00A9EC 0%, #00BFFF 100%);
    color: white;
    border-color: #00A9EC;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 169, 236, 0.3);
}

.nw-category-btn.active {
    background: linear-gradient(135deg, #00A9EC 0%, #0088C2 100%);
    color: white;
    border-color: #00A9EC;
    box-shadow: 0 4px 15px rgba(0, 169, 236, 0.4);
}

/* 内容布局 */
.nw-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-top: 20px;
    padding: 40px 20px;
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
}

/* 文章列表 */
.nw-main-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.nw-article-card {
    background: white;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 169, 236, 0.15);
    box-shadow: 0 5px 20px rgba(0, 169, 236, 0.08);
    display: grid;
    grid-template-columns: 320px 1fr;
}

.nw-article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 169, 236, 0.25);
    border-color: #00A9EC;
}

.nw-article-image {
    position: relative;
    overflow: hidden;
}

.nw-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.nw-article-card:hover .nw-article-image img {
    transform: scale(1.1);
}

.nw-article-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #00A9EC 0%, #00BFFF 100%);
    color: white;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 169, 236, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nw-article-tag.nw-tag-seo {
    background: linear-gradient(135deg, #00A9EC 0%, #0095D9 100%);
}

.nw-article-tag.nw-tag-marketing {
    background: linear-gradient(135deg, #00BFFF 0%, #00A9EC 100%);
}

.nw-article-tag.nw-tag-industry {
    background: linear-gradient(135deg, #0088C2 0%, #00A9EC 100%);
}

.nw-article-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.nw-article-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.nw-article-content h3 a {
    color: #2c2c2c;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.nw-article-content h3 a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #00A9EC 0%, #00BFFF 100%);
    transition: width 0.4s ease;
}

.nw-article-content h3 a:hover {
    color: #00A9EC;
}

.nw-article-content h3 a:hover::after {
    width: 100%;
}

.nw-article-excerpt {
    color: #666;
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nw-article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 15px;
    border-top: 2px solid rgba(0, 169, 236, 0.1);
}

.nw-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 14px;
}

.nw-meta-item i {
    color: #00A9EC;
    font-size: 16px;
}

.nw-read-more {
    margin-left: auto;
    color: white;
    background: linear-gradient(135deg, #00A9EC 0%, #00BFFF 100%);
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 169, 236, 0.3);
}

.nw-read-more:hover {
    gap: 12px;
    background: linear-gradient(135deg, #00BFFF 0%, #00A9EC 100%);
    box-shadow: 0 6px 20px rgba(0, 169, 236, 0.45);
    transform: translateX(3px);
}

.nw-read-more i {
    font-size: 12px;
}

/* 侧边栏 */
.nw-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.nw-sidebar-widget {
    background: white;
    padding: 30px;
    border-radius: 5px;
    border: 2px solid rgba(0, 169, 236, 0.15);
    box-shadow: 0 5px 20px rgba(0, 169, 236, 0.08);
    transition: all 0.3s;
}

.nw-sidebar-widget:hover {
    box-shadow: 0 8px 30px rgba(0, 169, 236, 0.15);
    border-color: rgba(0, 169, 236, 0.3);
}

.nw-widget-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2c2c2c;
    padding-bottom: 15px;
    border-bottom: 3px solid transparent;
    background: linear-gradient(white, white), linear-gradient(135deg, #00A9EC 0%, #00BFFF 100%);
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    position: relative;
}

.nw-widget-title::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #00A9EC 0%, #00BFFF 100%);
}

/* 热门文章 */
.nw-hot-list {
    list-style: none;
    padding: 0;
}

.nw-hot-item {
    margin-bottom: 15px;
}

.nw-hot-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #2c2c2c;
    transition: all 0.3s;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid transparent;
}

.nw-hot-item a:hover {
    background: linear-gradient(135deg, rgba(0, 169, 236, 0.08) 0%, rgba(230, 57, 80, 0.08) 100%);
    color: #00A9EC;
    border-color: rgba(0, 169, 236, 0.2);
    transform: translateX(5px);
}

.nw-hot-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #00A9EC 0%, #00BFFF 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 169, 236, 0.3);
}

.nw-hot-item:nth-child(1) .nw-hot-number {
    background: linear-gradient(135deg, #00A9EC 0%, #00BFFF 100%);
}

.nw-hot-item:nth-child(2) .nw-hot-number {
    background: linear-gradient(135deg, #00BFFF 0%, #33CCFF 100%);
}

.nw-hot-item:nth-child(3) .nw-hot-number {
    background: linear-gradient(135deg, #0088C2 0%, #00A9EC 100%);
}

.nw-hot-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

/* 标签云 */
.nw-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nw-tag-item {
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(0, 169, 236, 0.1) 0%, rgba(230, 57, 80, 0.1) 100%);
    color: #00A9EC;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid rgba(0, 169, 236, 0.2);
}

.nw-tag-item:hover {
    background: linear-gradient(135deg, #00A9EC 0%, #00BFFF 100%);
    color: white;
    border-color: #00A9EC;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 169, 236, 0.35);
}

/* 联系我们 */
.nw-contact-widget {
    background: linear-gradient(135deg, #00A9EC 0%, #0088C2 100%);
    color: white;
    box-shadow: 0 8px 30px rgba(0, 169, 236, 0.4);
}

.nw-contact-widget .nw-widget-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
    background: transparent;
}

.nw-contact-widget .nw-widget-title::before {
    background: linear-gradient(90deg, white 0%, rgba(255, 255, 255, 0.5) 100%);
}

.nw-contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nw-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s;
}

.nw-contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.nw-contact-item i {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 分页样式 */
.nw-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 60px;
    padding: 30px 20px;
    flex-wrap: wrap;
}

/* 分页状态信息 */
.nw-pagination .page-status {
    margin-right: 20px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(0, 169, 236, 0.08) 0%, rgba(0, 136, 194, 0.05) 100%);
    border-radius: 5px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(0, 169, 236, 0.15);
}

/* 分页按钮通用样式 */
.nw-pagination span {
    display: inline-flex;
    align-items: center;
}

.nw-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 16px;
    background: white;
    border: 2px solid rgba(0, 169, 236, 0.2);
    border-radius: 8px;
    color: #2c2c2c;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 169, 236, 0.08);
    position: relative;
    overflow: hidden;
}

.nw-pagination a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 169, 236, 0.1), transparent);
    transition: left 0.5s;
}

.nw-pagination a:hover::before {
    left: 100%;
}

.nw-pagination a:hover {
    background: linear-gradient(135deg, #00A9EC 0%, #00BFFF 100%);
    color: white;
    border-color: #00A9EC;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 169, 236, 0.3);
}

/* 首页/尾页按钮 */
.page-index a,
.page-last a {
    padding: 0 20px;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(0, 169, 236, 0.05) 0%, rgba(0, 136, 194, 0.03) 100%);
}

.page-index a:hover,
.page-last a:hover {
    background: linear-gradient(135deg, #00A9EC 0%, #0088C2 100%);
}

/* 前一页/后一页按钮 */
.page-pre a,
.page-next a {
    gap: 6px;
    font-weight: 600;
}

.page-pre a::before {
    content: '←';
    font-size: 16px;
}

.page-next a::after {
    content: '→';
    font-size: 16px;
}

/* 页码数字容器 */
.page-numbar {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

/* 页码数字 */
.page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: white;
    border: 2px solid rgba(0, 169, 236, 0.2);
    border-radius: 8px;
    color: #2c2c2c;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 169, 236, 0.08);
    cursor: pointer;
}

.page-num:hover {
    background: linear-gradient(135deg, #00A9EC 0%, #00BFFF 100%);
    color: white;
    border-color: #00A9EC;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 169, 236, 0.3);
}

/* 当前页码 */
.page-num-current,
.page-num.page-num-current {
    background: linear-gradient(135deg, #00A9EC 0%, #0088C2 100%);
    color: white;
    border-color: #00A9EC;
    box-shadow: 0 4px 16px rgba(0, 169, 236, 0.4);
    font-weight: 700;
    cursor: default;
}

.page-num-current:hover {
    transform: none;
}

/* 省略号 */
.page-numbar .page-num:not(a) {
    border: none;
    background: transparent;
    box-shadow: none;
    color: #999;
    cursor: default;
    font-size: 18px;
    font-weight: 700;
}

.page-numbar .page-num:not(a):hover {
    transform: none;
    background: transparent;
}

.nw-page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    background: #f5f5f5;
    border-color: #e0e0e0;
}

/* 滚动条样式 - 主色调 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00A9EC 0%, #00BFFF 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00BFFF 0%, #00A9EC 100%);
}

/* 选中文字样式 - 主色调 */
::selection {
    background: rgba(0, 169, 236, 0.2);
    color: #00A9EC;
}

::-moz-selection {
    background: rgba(0, 169, 236, 0.2);
    color: #00A9EC;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .nw-content-wrapper {
        grid-template-columns: 1fr;
    }

    .nw-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .nw-banner-title {
        font-size: 32px;
    }

    .nw-banner-subtitle {
        font-size: 16px;
    }

    .nw-category-tabs {
        gap: 10px;
    }

    .nw-category-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .nw-article-card {
        grid-template-columns: 1fr;
    }

    .nw-article-image {
        height: 200px;
    }

    .nw-sidebar {
        grid-template-columns: 1fr;
    }

    .nw-pagination {
        flex-wrap: wrap;
        gap: 6px;
        padding: 20px 10px;
    }

    .nw-pagination .page-status {
        width: 100%;
        text-align: center;
        margin: 0 0 15px 0;
    }

    .nw-pagination a {
        min-width: 36px;
        height: 36px;
        padding: 0 12px;
        font-size: 13px;
    }

    .page-num {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }

    .page-index a,
    .page-last a {
        padding: 0 14px;
    }

    .page-pre a::before,
    .page-next a::after {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .nw-pagination {
        gap: 4px;
        padding: 15px 5px;
    }

    .nw-pagination a {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 12px;
    }

    .page-num {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 12px;
    }

    .page-index,
    .page-last {
        display: none;
    }

    .page-numbar .page-num:nth-child(n+4) {
        display: none;
    }
}


