/* ===== 技术详情页专用样式 ===== */

/* 静态 Banner */
.page-banner {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 250px;
    background-image: url('/assets/home/images/technical-banner.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.page-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 142, 79, 0.8) 0%, rgba(0, 142, 79, 0.4) 100%);
}

.page-banner .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    color: white;
    font-size: 2.8rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-banner h1 span {
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}

/* 面包屑导航 */
.breadcrumb-wrapper {
    max-width: 1400px;
    margin: 1.5rem auto 0;
    padding: 0 2rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #64748b;
    background: #f8fafc;
    padding: 0.8rem 1.5rem;
    border-radius: 40px;
    border: 1px solid #e2e8f0;
}

.breadcrumb a {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #008e4f;
}

.breadcrumb i {
    font-size: 0.7rem;
    color: #94a3b8;
}

.breadcrumb .current {
    color: #008e4f;
    font-weight: 500;
}

/* ===== 主体内容区域 - 左右布局 ===== */
.technical-detail-page {
    max-width: 1400px;
    margin: 3rem auto 5rem;
    padding: 0 2rem;
    display: flex;
    gap: 3rem;
}

/* ===== 左侧分类导航 ===== */
.technical-sidebar {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-self: flex-start;
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* 技术服务分类 */
.service-menu {
    background: white;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.service-menu__title {
    background: #008e4f;
    color: white;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-menu__title i {
    font-size: 1.2rem;
}

.service-menu__list {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.service-menu__item {
    margin: 0;
    padding: 0;
}

.service-menu__item a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #475569;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    gap: 0.5rem;
    justify-content: space-between;
}

.service-menu__item a i {
    color: #94a3b8;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.service-menu__item a:hover {
    background-color: #f8fafc;
    color: #008e4f;
    border-left-color: #008e4f;
}

.service-menu__item a:hover i {
    color: #008e4f;
    transform: translateX(3px);
}

.service-menu__item.active a {
    background-color: rgba(0, 142, 79, 0.05);
    color: #008e4f;
    border-left-color: #008e4f;
    font-weight: 500;
}

.service-menu__item.active a i {
    color: #008e4f;
}

.service-menu__count {
    background: #e2e8f0;
    color: #64748b;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.service-menu__item.active .service-menu__count {
    background: #008e4f;
    color: white;
}

/* 联系方式卡片 */
.contact-card {
    background: white;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.contact-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #008e4f;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-card__title i {
    color: #008e4f;
    font-size: 1.2rem;
}

.contact-card__item {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    align-items: flex-start;
}

.contact-card__item i {
    color: #008e4f;
    font-size: 1rem;
    width: 20px;
    margin-top: 3px;
}

.contact-card__item-content {
    flex: 1;
}

.contact-card__item-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.contact-card__item-value {
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-card__item-value a {
    color: #334155;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-card__item-value a:hover {
    color: #008e4f;
}

.contact-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #008e4f;
    color: white;
    text-decoration: none;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    margin-top: 1rem;
    width: 100%;
    border: none;
    cursor: pointer;
}

.contact-card__btn:hover {
    background: #006f3d;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 142, 79, 0.2);
}

/* ===== 右侧文章详情 ===== */
.article-main {
    flex: 1;
}

.article-container {
    background: white;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

/* 文章头部 */
.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.article-category {
    display: inline-block;
    background: rgba(0, 142, 79, 0.1);
    color: #008e4f;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    margin-bottom: 1rem;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: #64748b;
    font-size: 0.9rem;
}

.article-meta i {
    color: #008e4f;
    margin-right: 0.3rem;
}

/* 文章封面图 */
.article-cover {
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.article-cover img {
    width: 100%;
    height: auto;
    display: block;
}

/* 文章内容 */
.article-content {
    color: #334155;
    line-height: 1.8;
    font-size: 1rem;
}

.article-content h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1e293b;
    margin: 2rem 0 1rem;
}

.article-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin: 1.5rem 0 1rem;
}

.article-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #334155;
    margin: 1.2rem 0 0.5rem;
}

.article-content p {
    margin-bottom: 1.2rem;
}

.article-content ul,
.article-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content li strong {
    color: #008e4f;
}

.article-content blockquote {
    background: #f8fafc;
    border-left: 4px solid #008e4f;
    padding: 1.2rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #475569;
}

.article-content code {
    background: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
    color: #008e4f;
}

.article-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.2rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: monospace;
    font-size: 0.9rem;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.article-content th {
    background: #008e4f;
    color: white;
    padding: 0.8rem;
    text-align: left;
}

.article-content td {
    padding: 0.8rem;
    border-bottom: 1px solid #e2e8f0;
}

.article-content tr:nth-child(even) {
    background: #f8fafc;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.article-content .note {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    color: #9a3412;
}

.article-content .tip {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    color: #166534;
}

.article-content .warning {
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    color: #991b1b;
}

/* 文章标签 */
.article-tags {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 2rem 0 1.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.article-tags span {
    font-weight: 500;
    color: #475569;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #f1f5f9;
    color: #475569;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s;
}

.tag:hover {
    background: #008e4f;
    color: white;
}

/* 文章分享 */
.article-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.article-share span {
    font-weight: 500;
    color: #475569;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
}

.share-btn:hover {
    background: #008e4f;
    border-color: #008e4f;
    color: white;
    transform: translateY(-2px);
}

/* 文章导航 */
.article-navigation {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.nav-prev, .nav-next {
    flex: 1;
}

.nav-prev a, .nav-next a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-prev a:hover, .nav-next a:hover {
    color: #008e4f;
}

.nav-prev a:hover i {
    transform: translateX(-3px);
}

.nav-next a:hover i {
    transform: translateX(3px);
}

.nav-prev i, .nav-next i {
    transition: transform 0.2s;
}

.nav-next {
    text-align: right;
}

.nav-disabled {
    color: #cbd5e1;
    cursor: not-allowed;
}

/* 相关文章 */
.related-articles {
    margin-top: 2.5rem;
}

.related-articles h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.related-item {
    display: flex;
    gap: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    text-decoration: none;
}

.related-item:hover {
    border-color: #008e4f;
    transform: translateY(-2px);
}

.related-item__image {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.related-item__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.related-item__content {
    flex: 1;
}

.related-item__title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.related-item__meta {
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    gap: 1rem;
}

.related-item__meta i {
    color: #008e4f;
    margin-right: 0.2rem;
}

/* 响应式 */
@media screen and (max-width: 1024px) {
    .technical-detail-page {
        flex-direction: column;
    }

    .technical-sidebar {
        position: static;
        width: 100%;
        flex-direction: row;
        gap: 1.5rem;
    }

    .service-menu,
    .contact-card {
        width: 50%;
    }
}

@media screen and (max-width: 768px) {
    .page-banner {
        height: 180px;
    }

    .page-banner h1 {
        font-size: 2rem;
    }

    .technical-sidebar {
        flex-direction: column;
    }

    .service-menu,
    .contact-card {
        width: 100%;
    }

    .article-container {
        padding: 1.5rem;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .article-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-prev, .nav-next {
        text-align: left;
    }
}

@media screen and (max-width: 480px) {
    .breadcrumb-wrapper {
        padding: 0 1rem;
    }

    .breadcrumb {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }

    .technical-detail-page {
        padding: 0 1rem;
    }

    .article-tags {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-share {
        flex-direction: column;
        align-items: flex-start;
    }

    .related-item {
        flex-direction: column;
    }

    .related-item__image {
        width: 100%;
        height: 120px;
    }
}