* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, sans-serif !important;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: #FFFFFF;
    color: #374151;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
}

.top-header {
    background: #0E121B;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 17px 24px;
    flex-shrink: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    margin-right: 30px;
}

.header-logo {
    height: 30px;
    width: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-dropdown {
    position: relative;
    display: inline-block;
    height: 100%;
    display: flex;
    align-items: center;
}

.lang-dropdown .nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #CACFD8;
    line-height: 24px;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.lang-dropdown .nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
}

.lang-dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 136px;
    background: #181B25;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    overflow: hidden;
}

.lang-dropdown.active .lang-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown.active .nav-arrow {
    transform: rotate(180deg);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    text-decoration: none;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.lang-option:hover {
    background: rgba(108, 82, 255, 0.15);
    color: #A78BFA;
}

.lang-option.active {
    color: #A78BFA;
}

.lang-option.active:hover {
    background: rgba(108, 82, 255, 0.15);
}

.lang-flag {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.nav-arrow {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
    opacity: 0.5;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 14px;
    width: 340px;
    transition: border-color 0.2s ease;
    margin-left: 70px;
}

.search-box:focus-within {
    border-color: rgba(108, 82, 255, 0.5);
}

.search-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    color: #FFFFFF;
    min-width: 240px;
}

.search-input:hover {
    border-color: #6C52FF;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.tabs-bar {
    background: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    flex-shrink: 0;
    z-index: 999;
}

.tabs-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 0;
}

.tabs-tab {
    padding: 16px 24px;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.tabs-tab.active {
    color: #6C52FF;
}

.tabs-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 2px;
    background: #6C52FF;
    border-radius: 1px;
}

.tabs-tab:hover:not(.active) {
    color: #6C52FF;
}

.doc-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
    width: 1440px;
    margin: 0 auto;
}

.sidebar {
    width: 340px;
    background: #FFFFFF;
    border-right: 1px solid #E5E7EB;
    padding: 20px 0;
    flex-shrink: 0;
    overflow-y: auto;
}

.nav-tree {
    padding: 0;
}

.nav-section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 11px;
    font-weight: 600;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0 16px;
    margin-bottom: 8px;
}

.nav-item-group {
    margin-bottom: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    transition: all 0.2s ease;
    margin-left: 8px;
    margin-right: 8px;
}

.nav-item .nav-bullet {
    margin-right: 10px;
}

.nav-item.has-arrow {
    justify-content: flex-start;
}

.nav-item.has-arrow span:first-of-type:not(.nav-bullet) {
    flex: 1;
}

.nav-item:hover {
    background: #F5F7FA;
}

.nav-item.active {
    background: rgba(108, 82, 255, 0.1);
    color: #6C52FF;
    font-weight: 500;
    font-size: 13px;
    border-radius: 8px;
}

.nav-item.active-highlight {
    background: rgba(108, 82, 255, 0.1);
    color: #6C52FF;
    font-weight: 500;
    font-size: 13px;
    border-radius: 8px;
}

.nav-item.has-arrow:not(.active):not(.active-highlight) {
    background: transparent;
    border-radius: 8px;
}

.nav-bullet {
    width: 6px;
    height: 6px;
    background: #6C52FF;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.nav-item:not(.active):not(.active-highlight) .nav-bullet {
    background: #D1D5DB;
}

.nav-arrow {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.6;
    margin-left: auto;
}

.nav-item.active-highlight .nav-arrow {
    opacity: 1;
}

.nav-group-header {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    font-weight: 500;
    text-align: left;
    transition: background 0.2s ease;
    margin-left: 8px;
    margin-right: 8px;
    width: calc(100% - 16px);
}


.nav-group-header .expand-icon {
    margin-left: auto;
}

.nav-group-header:hover {
    background: #F5F7FA;
}

.expand-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    opacity: 0.6;
}

.nav-group-content {
    display: none;
    padding-left: 16px;
}

.nav-group-content.open {
    display: block;
}

.content-area {
    flex: 1;
    padding: 32px;
    background: #FFFFFF;
    overflow-y: auto;
}

.content-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #1F2937;
    color: #FFFFFF;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.page-header {
    margin-bottom: 24px;
}

.page-title {
    font-size: 40px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin: 0;
}

.page-content {
    max-width: 800px;
}

.intro-paragraph {
    margin-bottom: 16px;
    font-size: 15px;
    color: #4B5563;
    line-height: 1.7;
}

.intro-paragraph strong {
    color: #374151;
    font-weight: 600;
}

.product-notice {
    margin-bottom: 16px;
}

.product-notice p {
    margin: 0;
    font-size: 15px;
    color: #4B5563;
    line-height: 1.7;
}

.product-notice strong {
    color: #111827;
    font-weight: 700;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.info-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 28px;
    transition: all 0.2s ease;
}

.info-card:hover {
    border-color: #E5E7EB;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.card-icon-wrap {
    width: 52px;
    height: 52px;
    background: rgba(108, 82, 255, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon-wrap svg {
    width: 24px;
    height: 24px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
}

.card-desc {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.6;
}

.toc-sidebar {
    width: 240px;
    padding: 32px 20px;
    flex-shrink: 0;
    border-left: 1px solid #E5E7EB;
    overflow-y: auto;
}

.toc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.toc-menu-icon {
    flex-shrink: 0;
}

.toc-icon {
    width: 12px;
    height: 12px;
    object-fit: contain;
    opacity: 0.6;
}

.toc-title {
    font-size: 10px;
    font-weight: 600;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0;
}

.toc-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toc-link {
    font-size: 13px;
    color: #6B7280;
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.2s ease;
    position: relative;
    padding-left: 12px;
}

.toc-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 0;
    background: #6C52FF;
    transition: height 0.2s ease;
}

.toc-link:hover {
    color: #6C52FF;
}

.toc-link.active {
    color: #6C52FF;
    font-weight: 500;
}

.toc-link.active::before {
    height: 16px;
}

@media (max-width: 1200px) {
    .toc-sidebar {
        display: none;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .search-box {
        width: 220px;
    }

    .content-area {
        padding: 20px;
    }

    .page-title {
        font-size: 28px;
    }
}

/* 子菜单nav-item缩进样式 */
.nav-group-content .nav-item {
    padding-left: 24px;
}