/* ========================================
   一语科技 · 新闻资讯列表/详情页专属样式
   暗色科技风 · 与 base.css 变量体系保持一致
   ======================================== */

/* ===== 内页 Hero 标题栏 ===== */
.news-hero {
    position: relative;
    padding: 90px 0 70px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 10% 20%, rgba(0, 212, 255, 0.18), transparent 55%),
        radial-gradient(ellipse at 90% 60%, rgba(114, 46, 209, 0.2), transparent 55%),
        linear-gradient(180deg, #0a1628 0%, #060e1a 100%);
    border-bottom: 1px solid var(--border);
}
.news-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(24, 144, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(24, 144, 255, 0.07) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(ellipse at center, #000 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 80%);
    pointer-events: none;
}
.news-hero::after {
    content: '📰';
    position: absolute;
    right: 6%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 220px;
    opacity: 0.06;
    filter: blur(1px);
    pointer-events: none;
}
.news-hero .inner { position: relative; z-index: 2; }

.news-hero-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
}
.news-hero-top a { color: var(--text-secondary); transition: color 0.25s; }
.news-hero-top a:hover { color: var(--primary-light); }
.news-hero-top .crumb-sep { opacity: 0.5; }
.news-hero-top .crumb-current {
    color: var(--primary-light);
    font-weight: 500;
}

.news-hero-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 14px;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 40%, #00d4ff 80%, #722ed1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.news-hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 620px;
    line-height: 1.8;
    margin: 0;
}
.news-hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 28px;
}
.news-hero-stats .stat-item .stat-num {
    font-size: 26px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.news-hero-stats .stat-item .stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== 主容器布局 ===== */
.news-body {
    padding: 60px 0 80px;
    background: var(--bg-darker);
}
.news-body-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: flex-start;
}

/* ===== 左侧栏 ===== */
.news-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 30px; }

.side-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px 22px 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.35s;
}
.side-card:hover {
    border-color: var(--border-light);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.side-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 60px; height: 3px;
    background: var(--gradient-primary);
    border-radius: 0 0 4px 0;
}
.side-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.side-card-title .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gradient-primary);
    box-shadow: 0 0 10px var(--glow);
}
.side-card-title .title-icon {
    font-size: 20px;
}

/* 分类列表 */
.side-cate-list { display: flex; flex-direction: column; gap: 6px; }
.side-cate-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.25s;
    cursor: pointer;
    position: relative;
}
.side-cate-item:hover {
    background: rgba(24, 144, 255, 0.08);
    color: var(--text-primary);
    transform: translateX(3px);
}
.side-cate-item.active {
    background: rgba(24, 144, 255, 0.14);
    color: var(--text-primary);
    font-weight: 600;
}
.side-cate-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 60%;
    border-radius: 0 3px 3px 0;
    background: var(--gradient-primary);
}
.side-cate-item .cate-label { display: flex; align-items: center; gap: 10px; }
.side-cate-item .cate-label .cate-icon { font-size: 16px; opacity: 0.85; }
.side-cate-item .cate-count {
    font-size: 12px;
    padding: 2px 9px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}
.side-cate-item.active .cate-count {
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 600;
}

/* 咨询热线卡 */
.side-hotline {
    text-align: center;
    padding: 28px 20px 26px;
    background:
        radial-gradient(circle at 50% 0%, rgba(0, 212, 255, 0.12), transparent 60%),
        var(--gradient-card);
}
.side-hotline .hotline-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    font-size: 26px;
    margin-bottom: 14px;
    box-shadow: 0 8px 24px rgba(24, 144, 255, 0.35);
    animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 24px rgba(24, 144, 255, 0.35); }
    50% { transform: scale(1.05); box-shadow: 0 8px 36px rgba(24, 144, 255, 0.55); }
}
.side-hotline .hotline-label {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.side-hotline .hotline-number {
    font-size: 22px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}
.side-hotline .hotline-time {
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 10px;
    border-top: 1px dashed var(--border);
}

/* 侧边地图/联系小卡 */
.side-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}
.side-contact .contact-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.side-contact .contact-row .c-icon {
    font-size: 16px;
    margin-top: 1px;
    flex-shrink: 0;
}
.side-contact .contact-row .c-label {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 2px;
}
.side-contact .contact-row .c-value { color: var(--text-primary); font-weight: 500; }

/* ===== 主内容区 ===== */
.news-main { min-width: 0; }

/* 筛选栏 */
.news-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 16px;
}
.cate-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.cate-pill {
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    transition: all 0.25s;
    cursor: pointer;
    white-space: nowrap;
}
.cate-pill:hover {
    color: var(--text-primary);
    border-color: var(--border);
    background: rgba(24, 144, 255, 0.06);
}
.cate-pill.active {
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(24, 144, 255, 0.35);
}
.news-count-tip {
    font-size: 13px;
    color: var(--text-muted);
}
.news-count-tip .count-num {
    color: var(--cyan);
    font-weight: 700;
    margin: 0 3px;
}

/* 新闻卡片网格 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.news-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}
.news-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, transparent 30%, rgba(0, 212, 255, 0.3), rgba(114, 46, 209, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.news-card:hover {
    transform: translateY(-8px);
    border-color: transparent;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(24, 144, 255, 0.25);
}
.news-card:hover::before { opacity: 1; }

.news-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #1a2a45, #0a1628);
}
.news-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.news-card:hover .news-card-thumb img {
    transform: scale(1.08);
}
.news-card-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(6, 14, 26, 0.6) 100%);
    pointer-events: none;
}
.news-date-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 6px 4px 7px;
    border-radius: 10px;
    background: rgba(6, 14, 26, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    line-height: 1;
}
.news-date-badge .date-day {
    font-size: 20px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.news-date-badge .date-ym {
    font-size: 11px;
    opacity: 0.85;
    margin-top: 4px;
}
.news-cate-tag {
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 2;
    padding: 5px 12px;
    border-radius: 50px;
    background: rgba(24, 144, 255, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}
.news-cate-tag.cate-industry { background: rgba(0, 212, 255, 0.85); }
.news-cate-tag.cate-tech { background: rgba(114, 46, 209, 0.85); }

.news-card-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}
.news-card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s;
}
.news-card:hover .news-card-title {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.news-card-desc {
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.news-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    margin-top: auto;
    border-top: 1px dashed var(--border);
}
.news-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: var(--text-muted);
}
.news-card-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.news-card-meta .meta-item .m-icon { opacity: 0.9; }
.news-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-light);
    transition: all 0.25s;
}
.news-card:hover .news-card-readmore {
    gap: 8px;
    color: var(--cyan);
}

/* 空状态 */
.news-empty {
    grid-column: 1 / -1;
    padding: 80px 40px;
    text-align: center;
    border-radius: 16px;
    background: var(--gradient-card);
    border: 1px dashed var(--border);
}
.news-empty .empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.6;
}
.news-empty .empty-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.news-empty .empty-desc {
    font-size: 14px;
    color: var(--text-muted);
}

/* ===== 分页 ===== */
.news-pager-wrap {
    margin-top: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 22px 26px;
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: 14px;
}
.pager-info {
    font-size: 13px;
    color: var(--text-secondary);
}
.pager-info .hl {
    color: var(--cyan);
    font-weight: 700;
    padding: 0 4px;
}
.pager-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pager-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    transition: all 0.25s;
    cursor: pointer;
}
.pager-btn:hover:not(:disabled) {
    color: var(--primary-light);
    border-color: var(--border-light);
    background: rgba(24, 144, 255, 0.08);
    transform: translateY(-1px);
}
.pager-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(24, 144, 255, 0.35);
}
.pager-btn:disabled,
.pager-btn.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== 详情页 ===== */
.article-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 44px 48px 48px;
    position: relative;
    overflow: hidden;
}
.article-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-primary);
}
.article-title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--text-primary);
    margin: 0 0 20px;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-bottom: 22px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.article-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.article-meta .meta-item .m-icon { font-size: 15px; }
.article-meta .meta-val { color: var(--text-secondary); }

.article-body {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-secondary);
}
.article-body p { margin: 0 0 16px; }
.article-body h2, .article-body h3, .article-body h4 {
    color: var(--text-primary);
    margin: 28px 0 14px;
    font-weight: 700;
    line-height: 1.4;
}
.article-body h2 { font-size: 22px; }
.article-body h3 { font-size: 18px; }
.article-body img {
    max-width: 100%;
    height: auto !important;
    border-radius: 10px;
    margin: 18px auto;
    display: block;
    border: 1px solid var(--border);
}
.article-body a {
    color: var(--primary-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.article-body ul, .article-body ol { margin: 0 0 16px; padding-left: 24px; }
.article-body ul li { list-style: disc; margin-bottom: 6px; }
.article-body ol li { list-style: decimal; margin-bottom: 6px; }
.article-body blockquote {
    margin: 20px 0;
    padding: 14px 20px;
    border-left: 3px solid var(--primary);
    background: rgba(24, 144, 255, 0.05);
    border-radius: 0 8px 8px 0;
    color: var(--text-secondary);
}

.article-share {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.article-share .share-label {
    font-size: 14px;
    color: var(--text-muted);
}
.bdsharebuttonbox a { opacity: 0.75; transition: opacity 0.2s; }
.bdsharebuttonbox a:hover { opacity: 1; }

.article-step {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.step-card {
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.25s;
}
.step-card:hover {
    border-color: var(--border-light);
    background: rgba(24, 144, 255, 0.05);
}
.step-card .step-label {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.step-card .step-title {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.step-card:hover .step-title { color: var(--primary-light); }
.step-card.next { text-align: right; }
.step-card.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.article-back-home {
    margin-top: 12px;
    text-align: center;
}
.article-back-home a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid var(--border);
    transition: all 0.25s;
}
.article-back-home a:hover {
    color: var(--primary-light);
    border-color: var(--border-light);
    background: rgba(24, 144, 255, 0.06);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .news-hero { padding: 70px 0 50px; }
    .news-hero-title { font-size: 34px; }
    .news-hero::after { font-size: 160px; }
    .news-body { padding: 40px 0 60px; }
    .news-body-layout { grid-template-columns: 1fr; gap: 30px; }
    .news-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
    .news-sidebar .side-card { flex: 1; min-width: 260px; }
    .news-grid { grid-template-columns: 1fr; }
    .article-card { padding: 30px 28px; }
    .article-title { font-size: 24px; }
    .article-step { grid-template-columns: 1fr; }
    .step-card.next { text-align: left; }
}

@media (max-width: 768px) {
    .news-hero { padding: 50px 0 40px; }
    .news-hero-title { font-size: 28px; }
    .news-hero-subtitle { font-size: 14px; }
    .news-hero-stats { gap: 24px; margin-top: 20px; }
    .news-hero-stats .stat-item .stat-num { font-size: 22px; }
    .news-body { padding: 30px 0 40px; }
    .news-sidebar .side-card { min-width: 100%; }
    .news-filter-bar { flex-direction: column; align-items: flex-start; }
    .news-card-body { padding: 18px; }
    .news-card-title { font-size: 16px; }
    .news-pager-wrap { flex-direction: column; align-items: flex-start; }
    .article-card { padding: 24px 20px; }
    .article-title { font-size: 20px; }
    .article-meta { gap: 14px; }
    .article-body { font-size: 14px; }
}
