﻿/* =========================================================
   技术支持详情页
   Prefix: txsup-
   Theme: #053099 / #ff6a00
   ========================================================= */

.txsup-page {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding: 32px 0 50px;
    color: #0f172a;
}

.txsup-page * {
    box-sizing: border-box;
}

/* 左侧 */
.txsup-sidebar {
    width: 280px;
    flex: 0 0 280px;
    background: #fff;
    border: 1px solid #dbe7ff;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(5, 48, 153, .07);
    overflow: hidden;
    position: sticky;
    top: 20px;
}

/* 左侧标题 */
.txsup-sidebar-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px;
    background: linear-gradient(90deg, #053099 0%, #ff6a00 100%);
}

.txsup-sidebar-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.txsup-sidebar-head span {
    display: block;
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
    line-height: 18px;
    font-weight: 800;
    letter-spacing: .05em;
}

.txsup-sidebar-head h1 {
    margin: 2px 0 0;
    color: #fff;
    font-size: 22px;
    line-height: 30px;
    font-weight: 900;
}

/* 菜单 */
.txsup-menu {
    padding: 14px;
}

.txsup-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.txsup-menu-item {
    margin-bottom: 8px;
}

.txsup-menu-link {
    min-height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    background: #f8fbff;
    border: 1px solid #e6eefc;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all .22s ease;
}

.txsup-menu-link > i {
    width: 20px;
    color: #053099;
    font-size: 16px;
    text-align: center;
}

.txsup-menu-link span {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
}

.txsup-menu-link em {
    color: #94a3b8;
    font-style: normal;
    transition: all .22s ease;
}

.txsup-menu-link:hover {
    background: #eef4ff;
    border-color: rgba(5, 48, 153, .25);
    color: #053099;
}

.txsup-menu-item.active > .txsup-menu-link {
    background: linear-gradient(90deg, #053099 0%, #ff6a00 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 18px rgba(5, 48, 153, .16);
}

.txsup-menu-item.active > .txsup-menu-link > i,
.txsup-menu-item.active > .txsup-menu-link em {
    color: #fff;
}

.txsup-menu-item.active > .txsup-menu-link em {
    transform: rotate(180deg);
}

/* 子菜单 */
.txsup-sub-menu {
    padding: 8px 0 4px 18px !important;
    display: none;
}

.txsup-menu-item.active .txsup-sub-menu {
    display: block;
}

.txsup-sub-menu li {
    margin-bottom: 6px;
}

.txsup-sub-menu li a {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    color: #475569;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all .2s ease;
}

.txsup-sub-menu li a i {
    color: #ff6a00;
    font-size: 13px;
}

.txsup-sub-menu li a span {
    font-size: 13px;
    line-height: 20px;
}

.txsup-sub-menu li a:hover,
.txsup-sub-menu li.active a {
    color: #053099;
    background: #eef4ff;
    font-weight: 800;
}

/* 左侧联系 */
.txsup-sidebar-contact {
    margin: 0 14px 16px;
    padding: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff7ef;
    border: 1px solid #ffd7b8;
    border-radius: 14px;
}

.txsup-sidebar-contact i {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 12px;
    background: #ff6a00;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.txsup-sidebar-contact strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    line-height: 20px;
}

.txsup-sidebar-contact p {
    margin: 3px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 20px;
}

/* 右侧内容 */
.txsup-content {
    flex: 1;
    min-width: 0;
}

.txsup-content-card {
    background: #fff;
    border: 1px solid #dbe7ff;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(5, 48, 153, .07);
    overflow: hidden;
}

.txsup-content-head {
    padding: 26px 30px;
    background: linear-gradient(90deg, #f8fbff 0%, #fff7ef 100%);
    border-bottom: 1px solid #dbe7ff;
}

.txsup-content-head span {
    display: inline-block;
    color: #ff6a00;
    font-size: 13px;
    line-height: 20px;
    font-weight: 900;
    letter-spacing: .06em;
    margin-bottom: 6px;
}

.txsup-content-head h2 {
    margin: 0;
    color: #053099;
    font-size: 28px;
    line-height: 38px;
    font-weight: 900;
}

/* 内容排版 */
.txsup-content-info {
    padding: 30px;
    color: #334155;
    font-size: 15px;
    line-height: 1.9;
}

.txsup-content-info p {
    margin: 0 0 16px;
}

.txsup-content-info h1,
.txsup-content-info h2,
.txsup-content-info h3,
.txsup-content-info h4 {
    color: #053099;
    font-weight: 900;
    margin: 26px 0 14px;
    line-height: 1.4;
}

.txsup-content-info h1 {
    font-size: 26px;
}

.txsup-content-info h2 {
    font-size: 22px;
}

.txsup-content-info h3 {
    font-size: 19px;
}

.txsup-content-info a {
    color: #053099;
    font-weight: 800;
    text-decoration: none;
}

.txsup-content-info a:hover {
    color: #ff6a00;
}

.txsup-content-info img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.txsup-content-info table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    font-size: 14px;
}

.txsup-content-info table th {
    background: #eef4ff;
    color: #053099;
    font-weight: 800;
}

.txsup-content-info table th,
.txsup-content-info table td {
    border: 1px solid #dbe7ff;
    padding: 10px 12px;
    text-align: left;
}

.txsup-content-info ul,
.txsup-content-info ol {
    padding-left: 22px;
    margin: 12px 0 18px;
}

.txsup-content-info li {
    margin-bottom: 8px;
}

/* 平板 */
@media screen and (max-width: 1200px) {
    .txsup-page {
        gap: 20px;
    }

    .txsup-sidebar {
        width: 250px;
        flex-basis: 250px;
    }

    .txsup-content-head h2 {
        font-size: 24px;
        line-height: 34px;
    }
}

/* 手机 */
@media screen and (max-width: 768px) {
    .txsup-page {
        display: block;
        padding: 18px 0 32px;
    }

    .txsup-sidebar {
        width: 100%;
        position: static;
        margin-bottom: 18px;
        border-radius: 14px;
    }

    .txsup-sidebar-head {
        padding: 18px;
    }

    .txsup-sidebar-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        font-size: 20px;
        border-radius: 14px;
    }

    .txsup-sidebar-head h1 {
        font-size: 20px;
        line-height: 28px;
    }

    .txsup-menu {
        padding: 12px;
    }

    .txsup-menu-link {
        min-height: 42px;
    }

    .txsup-content-card {
        border-radius: 14px;
    }

    .txsup-content-head {
        padding: 20px;
    }

    .txsup-content-head h2 {
        font-size: 22px;
        line-height: 30px;
    }

    .txsup-content-info {
        padding: 20px;
        font-size: 14px;
        line-height: 1.8;
    }

    .txsup-content-info table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}


/* 第一级改成 div 后，保持可点击手感 */
.txsup-menu-link {
    cursor: pointer;
    user-select: none;
}

/* 展开状态箭头旋转 */
.txsup-menu-item.open > .txsup-menu-link em {
    transform: rotate(180deg);
}

/* 展开状态显示二级 */
.txsup-menu-item.open > .txsup-sub-menu {
    display: block;
}

/* 没有二级分类时弱化箭头区域 */
.txsup-menu-item:not(.has-child) > .txsup-menu-link {
    cursor: default;
}