/* 设置数字字体为Time New Romans */
@font-face {
    font-family: 'Times New Roman';
    src: local('Times New Roman'), local('TimesNewRoman');
}

/* 全局设置 */
* {
    /* 英文和数字使用Times New Roman，中文使用宋体 */
    font-family: 'Times New Roman', 'SimSun', serif;
}

/* 系统工具页面样式 */
.system-section {
    padding: 100px 20px 60px;
    background-color: transparent;
}

.system-title {
    text-align: center;
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.system-subtitle {
    text-align: center;
    font-size: 20px;
    color: #b0b0b0;
    margin-bottom: 60px;
}

/* 布局样式 */
.system-layout {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
}

/* 左侧导航栏样式*/
.system-sidebar {
    width: 240px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.15));
    border-radius: 15px;
    overflow: hidden;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.15),
        inset 0 -1px 2px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 120px;
    /* 距离顶部的距离，考虑header的高度*/
    align-self: flex-start;
    /* 确保导航栏从顶部开始定位*/
    transform-style: preserve-3d;
    perspective: 1000px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    padding: 30px 15px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.15));
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(0);
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.1),
        inset 0 -1px 2px rgba(0, 0, 0, 0.15);
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.01));
    transform: translateZ(-5px);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(52, 152, 219, 0.15));
    transform: translateX(5px) translateZ(5px);
    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-item:hover::before {
    transform: translateZ(-8px);
    opacity: 0.8;
}

.nav-item.active {
    background: linear-gradient(145deg, rgba(52, 152, 219, 0.3), rgba(52, 152, 219, 0.2));
    border-left: 4px solid #3498db;
    transform: translateZ(3px);
    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.nav-item.active::before {
    transform: translateZ(-5px);
    opacity: 0.7;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.15), rgba(52, 152, 219, 0.1));
}

/* 右侧内容区域样式 */
.system-content {
    flex: 1;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.12));
    border-radius: 15px;
    padding: 30px;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.15),
        inset 0 -1px 2px rgba(0, 0, 0, 0.25);
    transform-style: preserve-3d;
    perspective: 1000px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-section {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.08));
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.35),
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        inset 0 -1px 1px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
    transform: translateZ(0);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.category-section h2 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 24px;
    text-align: left;
}

/* 软件网格布局 */
.software-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* 新的布局样式 */
.child-wrap {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s, transform 0.3s;
    cursor: pointer;
}

.child-wrap:hover {
    background-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.child-section {
    margin: 0;
}

.collapse-item {
    position: relative;
}

.collapse-item-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.2));
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(0);
    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.35),
        inset 0 1px 3px rgba(255, 255, 255, 0.12),
        inset 0 -1px 3px rgba(0, 0, 0, 0.18);
    border-radius: 4px;
    margin: 0 -2px;
}

.collapse-item-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.25), rgba(255, 255, 255, 0.08));
    border-radius: 4px;
    transform: translateZ(-8px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.collapse-item-header:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.15));
    transform: translateZ(3px);
    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.45),
        inset 0 1px 4px rgba(255, 255, 255, 0.18),
        inset 0 -1px 4px rgba(0, 0, 0, 0.12);
}

.collapse-item-header .icon {
    width: 60px;
    height: 60px;
    margin: 0 15px 0 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collapse-item-header .icon img {
    max-width: 40px;
    max-height: 40px;
}

.collapse-item-header h3 {
    color: #ffffff;
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    flex: 1;
}

.collapse-item-header .arrow {
    color: #3498db;
    font-size: 18px;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collapse-item-header .arrow::before {
    content: '▼';
}

.collapse-item.is-expanded .collapse-item-header .arrow {
    transform: rotate(180deg);
}

.collapse-item-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 20px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.collapse-item.is-expanded .collapse-item-content {
    max-height: 1000px;
    opacity: 1;
    padding: 15px 20px;
}

.list.list_2 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.item-wrap {
    color: #b0b0b0;
    font-size: 16px;
    font-weight: bold;
    font-family: "Times New Roman", serif;
    padding: 8px 12px;
    margin: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.15));
    border-radius: 4px;
    width: calc(33.333333333% - 6.666666667px);
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(0);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.1),
        inset 0 -1px 2px rgba(0, 0, 0, 0.15);
}

.item-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.05));
    border-radius: 4px;
    transform: translateZ(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.item-wrap:hover {
    color: #3498db;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0.1));
    transform: translateZ(2px);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.4),
        inset 0 1px 3px rgba(255, 255, 255, 0.15),
        inset 0 -1px 3px rgba(0, 0, 0, 0.1);
}

/* 响应式调整*/
@media (max-width: 1024px) {
    .item-wrap {
        width: calc(50% - 5px);
    }
}

@media (max-width: 768px) {
    .item-wrap {
        width: calc(50% - 5px);
    }
}

@media (max-width: 480px) {
    .item-wrap {
        width: 100%;
    }
}

/* 返回首页按钮 */
.back-to-home {
    text-align: center;
    margin-top: 80px;
}

.back-btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: #3498db;
    ;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.back-btn:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* 响应式设计*/
@media (max-width: 768px) {
    .system-title {
        font-size: 28px;
    }

    .system-layout {
        flex-direction: column;
    }

    .system-sidebar {
        width: 100%;
    }

    .system-content {
        padding: 20px;
    }
}