* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    background: #ffffff;
    color: #333333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 顶部导航栏 */
.header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    font-size: 18px;
    font-weight: 700;
    color: #3b82f6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo::before {
    content: "⚡";
    font-size: 20px;
}

.header-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.platform-link {
    font-size: 13px;
    color: #3b82f6;
    text-decoration: none;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

/* 主容器 */
.main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* 左侧导航栏 */
.sidebar {
    width: 250px;
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
    padding: 20px 0;
    overflow-y: auto;
    flex-shrink: 0;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 20px 8px;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin-bottom: 2px;
}

.nav-link {
    display: block;
    padding: 8px 20px;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 13px;
}

.nav-link:hover {
    background: #f3f4f6;
    color: #3b82f6;
}

.nav-link.active {
    background: #dbeafe;
    color: #1e40af;
    font-weight: 500;
}

.nav-submenu {
    list-style: none;
    margin-left: 16px;
}

.nav-subitem {
    margin-bottom: 1px;
}

.nav-sublink {
    display: block;
    padding: 6px 20px;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 12px;
}

.nav-sublink:hover {
    background: #f3f4f6;
    color: #3b82f6;
}

.nav-sublink.active {
    background: #dbeafe;
    color: #1e40af;
    font-weight: 500;
}

/* 右侧内容区 */
.content {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 13px;
    color: #6b7280;
}

.breadcrumb-home {
    color: #3b82f6;
    text-decoration: none;
}

.breadcrumb-separator {
    font-size: 10px;
}

.breadcrumb-current {
    color: #1f2937;
    font-weight: 500;
}

/* 内容标题 */
.content-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 24px;
}

/* 内容段落 */
.content-text {
    font-size: 15px;
    color: #4b5563;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* 表格 */
.api-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 14px;
}

.api-table th,
.api-table td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid #e5e7eb;
}

.api-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #1f2937;
}

.api-table td {
    color: #4b5563;
}

/* 代码块 */
.code-block {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    overflow-x: auto;
}

.code-block pre {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    color: #374151;
}

/* 提示信息 */
.note {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #92400e;
}

/* 版本更新卡片 */
.version-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    transition: all 0.2s ease;
}

.version-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.version-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.version-date {
    font-size: 13px;
    color: #6b7280;
}

.version-changes {
    margin-left: 20px;
}

.version-changes li {
    margin-bottom: 8px;
    color: #4b5563;
}

/* 汉堡菜单 */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -250px;
        top: 0;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .content {
        padding: 24px;
    }
    
    .header-right {
        gap: 8px;
    }
    
    .platform-link {
        display: none;
    }
    
    .platform-link.service-protocol {
        display: block;
    }
    
    .hamburger-menu {
        display: block;
    }
    
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .overlay.active {
        display: block;
    }
}

/* 服务协议样式 */
.agreement-section {
    margin-bottom: 32px;
}

.agreement-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.agreement-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    margin-top: 24px;
}

.agreement-section p {
    margin-bottom: 12px;
}

.agreement-section ul {
    margin-left: 24px;
    margin-bottom: 16px;
}

.agreement-section li {
    margin-bottom: 8px;
}