@font-face {
    font-family: "GoogleSansFlex";
    src:url("../fonts/GoogleSansFlex.ttf") format("truetype");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "GoogleSansFlex", "微软雅黑";
    font-weight: 100;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    image-rendering: auto;
}

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #f5f7fa;
    color: #333;
    overflow: hidden;
}

.header {
    height: 64px;
    background-color: #202020;
    color: #e9e9e9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid #2c2c2c;
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-title {
    font-size: 1.45rem;
    font-weight: 100;
    color: #e9e9e9;
}

.header-menu-btn {
    background: none;
    border: none;
    color: #e9e9e9;
    font-size: 1.35rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-menu-btn:hover {
    background-color: #383838;
}

.header-menu-btn i {
    transition: transform 0.3s ease;
}

.header-menu-btn.rotated i {
    transform: rotate(180deg);
}

.main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.sidebar-tabs {
    width: 240px;
    background-color: #202020;
    color: #e9e9e9;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    transition: all 0.3s ease;
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-tabs.collapsed {
    width: 60px;
}

.sidebar-tabs.collapsed .sidebar-tab-item span {
    display: none;
}

.sidebar-tabs.collapsed .sidebar-tab-item {
    justify-content: center;
    padding: 14px 10px;
}

.sidebar-tabs.collapsed .sidebar-tab-item img {
    margin-right: 0;
}

.sidebar-tab-item {
    padding: 14px 20px;
    font-size: 1.05rem;
    color: #e9e9e9;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 3px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

.sidebar-tab-item.active {
    background-color: #2174ff;
    color: #e9e9e9;
    font-weight: 100;
}

.sidebar-tab-item:hover {
    background-color: #383838;
    color: #e9e9e9;
}

.sidebar-tab-item img {
    width: 22px;
    height: 22px;
    filter: invert(1);
    flex-shrink: 0;
}

.sidebar-tab-item.active img {
    filter: invert(1);
}

.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px 42px;
    transition: all 0.3s ease;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 26px;
    margin-bottom: 26px;
}

.card h2 {
    font-size: 1.3rem;
    font-weight: 100;
    margin-bottom: 18px;
    color: #202020;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card h2 img {
    width: 26px;
    height: 26px;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 8px;
}

.link-grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 14px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e4e7ed;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
    text-align: center;
    font-size: 0.98rem;
    gap: 8px;
}

.link-grid a img {
    width: 38px;
    height: 38px;
}

.link-grid a:hover {
    background-color: #e8f3ff;
    border-color: #2174ff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(33, 116, 255, 0.15);
}

.content-panel {
    display: none;
}

.content-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .sidebar-tabs {
        position: fixed;
        left: 0;
        top: 64px;
        bottom: 0;
        z-index: 1000;
        transform: translateX(-100%);
    }

    .sidebar-tabs.show {
        transform: translateX(0);
    }

    .main-content {
        padding: 22px;
    }

    .link-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .link-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.lang-switch-btn {
    background: none;
    border: none;
    color: #e9e9e9;
    font-size: 1rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.lang-switch-btn:hover {
    background-color: #383838;
}