* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    min-height: 100vh;
    line-height: 1.6;
}

/* 背景网格 */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(236, 72, 153, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(236, 72, 153, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
}

/* 背景光晕 */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.4), transparent);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent);
    bottom: -50px;
    left: -50px;
}

/* 导航栏 */
.navbar {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
}

.nav-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ec4899;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Hero 区域 */
.hero {
    padding: 4rem 1.5rem;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4rem;
}

.hero-left {
    flex: 1;
    text-align: center;
}

.hero-right {
    flex-shrink: 0;
    margin-top: 1rem;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #f472b6, #ec4899, #db2777);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* 开发者卡片 */
.developer-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    min-width: 280px;
    backdrop-filter: blur(10px);
}

.developer-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f472b6, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: #fff;
}

.developer-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.developer-role {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1rem;
}

.developer-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.developer-stat {
    text-align: center;
}

.developer-stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ec4899;
}

.developer-stat-label {
    font-size: 0.8rem;
    color: #666;
}

.developer-btn {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    border: none;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
}

.developer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.4);
}

/* 移动端开发者卡片位置 */
.mobile-developer-card {
    display: none;
}

/* 搜索框 */
.search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.search-input-wrapper:focus-within {
    border-color: rgba(236, 72, 153, 0.5);
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.2);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    color: #fff;
    font-size: 1rem;
    outline: none;
}

.search-input::placeholder {
    color: #666;
}

.search-btn {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    border: none;
    color: #fff;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.4);
}

/* 热门搜索 */
.hot-search {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.hot-search-label {
    color: #666;
}

.hot-search-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hot-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0a0a0;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s;
    cursor: pointer;
}

.hot-tag:hover {
    background: rgba(236, 72, 153, 0.2);
    border-color: rgba(236, 72, 153, 0.5);
    color: #ec4899;
}

/* 统计信息 */
.stats-section {
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f472b6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #666;
    font-size: 0.85rem;
}

/* 主内容区 */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* 区块标题 */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #666;
    font-size: 0.95rem;
}

/* 搜索结果提示 */
.search-result-info {
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.search-result-text {
    color: #e0e0e0;
    font-size: 1rem;
}

.search-result-text strong {
    color: #ec4899;
}

.clear-search-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #a0a0a0;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.clear-search-btn:hover {
    background: rgba(236, 72, 153, 0.2);
    border-color: rgba(236, 72, 153, 0.5);
    color: #ec4899;
}

/* API卡片网格 */
.api-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.api-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
}

.api-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(236, 72, 153, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.api-card:hover {
    transform: translateY(-5px);
    border-color: rgba(236, 72, 153, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(236, 72, 153, 0.1);
}

.api-card:hover::before {
    opacity: 1;
}

.api-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.api-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ec4899;
    flex-shrink: 0;
    overflow: hidden;
}

.api-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.api-icon i {
    font-size: 1.5rem;
}

.api-title-wrapper {
    flex: 1;
    min-width: 0;
}

.api-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.api-description {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.api-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.api-count {
    font-size: 0.8rem;
    color: #666;
}

.api-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* 步骤区域 */
.steps-section {
    padding: 3rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.steps-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step-item {
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 auto 1rem;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.step-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* 页脚 */
.footer {
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 1.5rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ec4899;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #666;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: #888;
    text-decoration: none;
}

/* 移动端菜单 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 1.5rem;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu-links a {
    color: #a0a0a0;
    text-decoration: none;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 1rem;
}

.mobile-menu-links a:hover {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-left {
        text-align: center;
    }
    
    .hero-right {
        display: none;
    }
    
    .mobile-developer-card {
        display: block;
        margin-top: 2rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .search-input-wrapper {
        flex-direction: column;
        border-radius: 20px;
        padding: 0.5rem;
    }
    
    .search-input {
        width: 100%;
        padding: 0.75rem 1rem;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }
    
    .hot-search {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .api-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .search-result-info {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
        height: 60px;
    }
    
    .nav-logo {
        font-size: 1rem;
    }
    
    .nav-logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-item {
        padding: 0.75rem 0.5rem;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* 文档页特有样式 */
.main-container {
    display: flex;
    min-height: calc(100vh - 70px);
}

.sidebar {
    width: 280px;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    overflow-y: auto;
    flex-shrink: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.project-list {
    list-style: none;
}

.project-item {
    margin-bottom: 0.25rem;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #a0a0a0;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.project-link:hover,
.project-link.active {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.project-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.project-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-icon i {
    font-size: 1rem;
    color: #ec4899;
}

.project-icon-img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.project-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-name {
    flex: 1;
    min-width: 0;
}

.doc-content,
.content-area {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.doc-detail {
    max-width: 900px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    margin: 0 auto;
}

.doc-detail-header {
    margin-bottom: 2rem;
}

.doc-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.doc-detail-desc {
    color: #888;
    font-size: 1rem;
    line-height: 1.6;
}

.doc-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.api-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.doc-detail-endpoint {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.875rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #ec4899;
    word-break: break-all;
    margin-bottom: 1.5rem;
}

.doc-tabs {
    margin-top: 2rem;
}

.tab-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1rem;
    flex-wrap: wrap;
}

.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

.tab-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover,
.tab-btn.active {
    background: rgba(236, 72, 153, 0.15);
    border-color: rgba(236, 72, 153, 0.3);
    color: #ec4899;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.doc-section {
    margin-bottom: 2rem;
}

.doc-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}

.doc-section h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 0.75rem;
}

.doc-section p {
    color: #888;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.table-responsive {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.doc-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.2);
}

.doc-table th,
.doc-table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.doc-table th {
    background: rgba(255, 255, 255, 0.03);
    font-weight: 600;
    color: #fff;
    font-size: 0.85rem;
    white-space: nowrap;
}

.doc-table tr:last-child td {
    border-bottom: none;
}

.doc-table td {
    color: #a0a0a0;
    font-size: 0.85rem;
}

.param-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.param-table th,
.param-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.param-table th {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.param-table td {
    color: #a0a0a0;
    font-size: 0.9rem;
}

.code-block {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    overflow-x: auto;
    position: relative;
}

.code-block::before {
    content: '';
    position: absolute;
    top: 0.75rem;
    left: 1rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f57;
    box-shadow: 
        20px 0 0 #febc2e,
        40px 0 0 #28c840;
}

.code-block pre {
    margin-top: 1.5rem;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e0e0e0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.25rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.95rem;
}

.mobile-sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 2rem;
    left: 1.5rem;
    z-index: 999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    border: none;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
    transition: all 0.3s;
}

.mobile-sidebar-toggle:hover {
    transform: scale(1.1);
}

.code-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.code-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}

.code-tab:hover,
.code-tab.active {
    background: rgba(236, 72, 153, 0.15);
    border-color: rgba(236, 72, 153, 0.3);
    color: #ec4899;
}

.code-block-wrapper {
    margin-bottom: 1rem;
}

/* 文档页响应式 */
@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        top: 70px;
        left: 0;
        height: calc(100vh - 70px);
        z-index: 998;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .doc-content {
        padding: 1.5rem 1rem;
    }
    
    .mobile-sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #sidebarOverlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 997;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }
    
    #sidebarOverlay.active {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 768px) {
    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
    
    .param-table {
        font-size: 0.85rem;
    }
    
    .param-table th,
    .param-table td {
        padding: 0.5rem 0.75rem;
    }
    
    .doc-detail-title {
        font-size: 1.5rem;
    }
}
