﻿/* ============================================
   AOSHOW翱烁 - 新闻详情页样式
   前缀：nde-
   主题色：#cc4e15 (橙) / #0866b2 (蓝)
   ============================================ */

/* ===== 重置与基础 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background: #f7f8fa;
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== 主题色变量 ===== */
:root {
    --nde-orange: #cc4e15;
    --nde-blue: #0866b2;
    --nde-dark: #222;
    --nde-gray: #666;
    --nde-light-gray: #f5f5f5;
    --nde-border: #e5e5e5;
}

/* ============================================
   主体内容区（1320px居中）
   ============================================ */
.nde-main {
    padding: 30px 0 80px;
    min-height: 100vh;
}

.nde-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   面包屑导航
   ============================================ */
.nde-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 13px;
    color: #888;
    margin-bottom: 35px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--nde-border);
}

.nde-breadcrumb-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--nde-orange);
    margin-right: 6px;
    transition: all 0.3s;
}

.nde-breadcrumb-icon:hover {
    color: var(--nde-blue);
    transform: scale(1.15);
}

.nde-breadcrumb-text {
    margin-right: 2px;
}

.nde-breadcrumb-link {
    color: #888;
    transition: color 0.3s;
}

.nde-breadcrumb-link:hover {
    color: var(--nde-orange);
}

.nde-breadcrumb-sep {
    margin: 0 8px;
    color: #ccc;
}

.nde-breadcrumb-current {
    color: #333;
    font-weight: 500;
}

/* ============================================
   文章标题区
   ============================================ */
.nde-article-header {
    text-align: center;
    margin-bottom: 40px;
}

.nde-article-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--nde-dark);
    line-height: 1.5;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nde-article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 14px;
    color: #999;
    margin-bottom: 25px;
}

.nde-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nde-meta-item i {
    color: var(--nde-orange);
    font-size: 14px;
}

.nde-meta-divider {
    width: 1px;
    height: 14px;
    background: #ddd;
}

/* 虚线分割线 */
.nde-article-divider {
    width: 100%;
    height: 1px;
    background: repeating-linear-gradient(
        90deg,
        #ccc 0,
        #ccc 6px,
        transparent 6px,
        transparent 12px
    );
}

/* ============================================
   文章正文内容
   ============================================ */
.nde-article-content {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.nde-content-paragraph {
    font-size: 15px;
    color: #444;
    line-height: 2;
    margin-bottom: 20px;
    text-align: justify;
    text-indent: 2em;
}

.nde-content-heading {
    font-size: 22px;
    font-weight: 700;
    color: var(--nde-dark);
    margin: 40px 0 20px;
    padding-left: 15px;
    position: relative;
    line-height: 1.5;
}

.nde-content-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 24px;
    background: linear-gradient(180deg, var(--nde-orange), var(--nde-blue));
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(204, 78, 21, 0.3);
}

.nde-content-subheading {
    font-size: 18px;
    font-weight: 700;
    color: var(--nde-blue);
    margin: 30px 0 15px;
    padding-left: 12px;
    border-left: 4px solid var(--nde-blue);
    line-height: 1.5;
}

/* 高亮提示框 */
.nde-content-highlight {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: linear-gradient(135deg, rgba(8, 102, 178, 0.06), rgba(8, 102, 178, 0.02));
    border-left: 4px solid var(--nde-blue);
    border-radius: 0 10px 10px 0;
    padding: 20px 25px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(8, 102, 178, 0.08);
    transition: all 0.3s;
}

.nde-content-highlight:hover {
    box-shadow: 0 6px 25px rgba(8, 102, 178, 0.15);
    transform: translateX(3px);
}

.nde-content-highlight i {
    font-size: 24px;
    color: var(--nde-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.nde-content-highlight div {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}

.nde-content-highlight strong {
    color: var(--nde-blue);
}

/* 警告提示框 */
.nde-highlight-warning {
    background: linear-gradient(135deg, rgba(204, 78, 21, 0.06), rgba(204, 78, 21, 0.02));
    border-left-color: var(--nde-orange);
    box-shadow: 0 4px 15px rgba(204, 78, 21, 0.08);
}

.nde-highlight-warning:hover {
    box-shadow: 0 6px 25px rgba(204, 78, 21, 0.15);
}

.nde-highlight-warning i {
    color: var(--nde-orange);
}

.nde-highlight-warning strong {
    color: var(--nde-orange);
}

/* 无序列表 */
.nde-content-list {
    margin: 15px 0 20px;
    padding-left: 10px;
}

.nde-content-list li {
    position: relative;
    padding: 8px 0 8px 28px;
    font-size: 15px;
    color: #444;
    line-height: 1.8;
}

.nde-content-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 10px;
    color: var(--nde-orange);
    font-size: 16px;
}

.nde-content-list li strong {
    color: var(--nde-dark);
}

/* 有序列表 */
.nde-content-ol {
    margin: 15px 0 20px;
    padding-left: 10px;
    counter-reset: nde-ol-counter;
}

.nde-content-ol li {
    position: relative;
    padding: 8px 0 8px 36px;
    font-size: 15px;
    color: #444;
    line-height: 1.8;
    counter-increment: nde-ol-counter;
}

.nde-content-ol li::before {
    content: counter(nde-ol-counter);
    position: absolute;
    left: 0;
    top: 10px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--nde-blue), #0a82d9);
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(8, 102, 178, 0.3);
}

/* 工具卡片组 */
.nde-content-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 25px 0 30px;
}

.nde-tool-card {
    background: linear-gradient(145deg, #ffffff, #f5f7fa);
    border-radius: 14px;
    padding: 25px;
    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nde-tool-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 15px 40px rgba(8, 102, 178, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(204, 78, 21, 0.2);
}

.nde-tool-icon {
    width: 55px;
    height: 55px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--nde-orange), #e06a2e);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(204, 78, 21, 0.3);
    transition: all 0.4s;
}

.nde-tool-card:hover .nde-tool-icon {
    background: linear-gradient(135deg, var(--nde-blue), #0a82d9);
    box-shadow: 0 5px 15px rgba(8, 102, 178, 0.3);
    transform: rotateY(180deg);
}

.nde-tool-icon i {
    font-size: 24px;
    color: #fff;
}

.nde-tool-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--nde-dark);
    margin-bottom: 10px;
}

.nde-tool-card p {
    font-size: 13px;
    color: #777;
    line-height: 1.7;
}

/* 标签 */
.nde-content-tags {
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px dashed var(--nde-border);
    text-indent: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nde-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(204, 78, 21, 0.08), rgba(8, 102, 178, 0.05));
    border: 1px solid rgba(204, 78, 21, 0.15);
    border-radius: 20px;
    font-size: 13px;
    color: var(--nde-orange);
    transition: all 0.3s;
    cursor: pointer;
}

.nde-tag:hover {
    background: linear-gradient(135deg, var(--nde-orange), #e06a2e);
    color: #fff;
    border-color: var(--nde-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(204, 78, 21, 0.3);
}

.nde-tag i {
    font-size: 11px;
}

/* ============================================
   内容底部分割线
   ============================================ */
.nde-bottom-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--nde-border), transparent);
    margin: 50px 0 30px;
}

/* ============================================
   上一篇 / 下一篇
   ============================================ */
.nde-prev-next {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.nde-prev-link,
.nde-next-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px 28px;
    background: linear-gradient(145deg, #ffffff, #f5f7fa);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.35s ease;
    overflow: hidden;
    position: relative;
}

.nde-prev-link::before,
.nde-next-link::before {
    content: '';
    position: absolute;
    top: 0;
    width: 4px;
    height: 100%;
    transition: all 0.3s;
}

.nde-prev-link::before {
    left: 0;
    background: linear-gradient(180deg, var(--nde-blue), #0a82d9);
}

.nde-next-link::before {
    right: 0;
    background: linear-gradient(180deg, var(--nde-orange), #e06a2e);
}

.nde-prev-link:hover {
    transform: translateX(-5px);
    box-shadow: 0 10px 30px rgba(8, 102, 178, 0.12);
    border-color: rgba(8, 102, 178, 0.2);
}

.nde-next-link:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(204, 78, 21, 0.12);
    border-color: rgba(204, 78, 21, 0.2);
}

.nde-pn-label {
    font-size: 13px;
    color: #999;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.nde-prev-link:hover .nde-pn-label {
    color: var(--nde-blue);
}

.nde-next-link:hover .nde-pn-label {
    color: var(--nde-orange);
}

.nde-pn-label i {
    font-size: 11px;
}

.nde-pn-title {
    font-size: 15px;
    color: #444;
    font-weight: 600;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.nde-prev-link:hover .nde-pn-title {
    color: var(--nde-blue);
}

.nde-next-link:hover .nde-pn-title {
    color: var(--nde-orange);
}

.nde-next-link {
    text-align: right;
    align-items: flex-end;
}

/* ============================================
   响应式适配
   ============================================ */
@media (max-width: 992px) {
    .nde-article-title {
        font-size: 24px;
    }
    .nde-content-cards {
        grid-template-columns: 1fr;
    }
    .nde-prev-next {
        flex-direction: column;
    }
    .nde-next-link {
        text-align: left;
        align-items: flex-start;
    }
    .nde-next-link::before {
        right: auto;
        left: 0;
    }
}

@media (max-width: 576px) {
    .nde-main {
        padding: 20px 0 50px;
    }
    .nde-article-title {
        font-size: 20px;
    }
    .nde-article-meta {
        flex-direction: column;
        gap: 8px;
    }
    .nde-meta-divider {
        display: none;
    }
    .nde-content-heading {
        font-size: 19px;
    }
    .nde-content-subheading {
        font-size: 16px;
    }
    .nde-prev-link,
    .nde-next-link {
        padding: 18px 20px;
    }
}
