/* ============================================================
   Hero 顶部横幅 - 简约大气版
   ============================================================ */
.docs-hero {
    position: relative;
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 20px;
    padding: 32px 36px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

/* 左侧细竖条 */
.docs-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #4a6cf7, #7c3aed);
    opacity: 0.7;
    border-radius: 20px 0 0 20px;
}

/* 右下角极浅装饰圆 */
.docs-hero::after {
    content: '';
    position: absolute;
    right: -100px;
    bottom: -100px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(74, 108, 247, 0.05), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.docs-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.docs-hero h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 8px;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.docs-hero h1 i {
    color: #4a6cf7;
}

.docs-hero p {
    font-size: 15px;
    color: #718096;
    margin: 0;
    line-height: 1.7;
    max-width: 620px;
}

.docs-hero .hero-tags {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.docs-hero .hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f8fafc;
    color: #4a5568;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 12px;
    border: 1px solid #eef2f6;
    transition: all 0.2s;
}

.docs-hero .hero-tag i {
    color: #4a6cf7;
    font-size: 13px;
}

.docs-hero .hero-tag:hover {
    border-color: #4a6cf7;
    color: #4a6cf7;
    background: #f0f5ff;
}

.docs-hero .hero-btn {
    background: #4a6cf7;
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.25s;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(74, 108, 247, 0.18);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.docs-hero .hero-btn:hover {
    background: #3a5cd9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 108, 247, 0.3);
    color: #ffffff;
}

/* ============================================================
   主容器
   ============================================================ */
.api-docs-wrap {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eef2f6;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .02);
    overflow: hidden;
    margin-bottom: 24px;
}

/* ============================================================
   顶部 Tab
   ============================================================ */
.docs-top-tabs {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0 20px;
    background: #fff;
    border-bottom: 1px solid #eef2f6;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.docs-top-tabs::-webkit-scrollbar {
    display: none;
}

.docs-top-tab {
    padding: 16px 20px;
    font-size: 14px;
    color: #4a5568;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all .2s;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.docs-top-tab:hover {
    color: #4a6cf7;
}

.docs-top-tab.active {
    color: #4a6cf7;
    font-weight: 600;
    border-bottom-color: #4a6cf7;
}

.docs-top-tab .badge-new {
    background: linear-gradient(135deg, #f89250, #f1404b);
    color: #fff;
    font-size: 9px;
    padding: 1px 6px;
    border-radius: 8px;
    font-weight: 500;
}

/* ============================================================
   布局：侧边栏 + 内容
   ============================================================ */
.docs-body {
    display: flex;
    min-height: 500px;
}

.docs-sidebar {
    flex: 0 0 220px;
    width: 220px;
    padding: 24px 12px 24px 20px;
    border-right: 1px solid #f0f2f5;
    background: #fafbfc;
}

.docs-sidebar-title {
    font-size: 11px;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: .8px;
    font-weight: 700;
    padding: 0 8px 8px;
    margin-top: 18px;
}

.docs-sidebar-title:first-child {
    margin-top: 0;
}

.docs-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 13px;
    color: #4a5568;
    text-decoration: none;
    border-radius: 6px;
    transition: all .2s;
    line-height: 1.5;
}

.docs-sidebar-menu li a i {
    font-size: 14px;
    color: #a0aec0;
    transition: color .2s;
}

.docs-sidebar-menu li a:hover {
    background: #eef2ff;
    color: #4a6cf7;
}

.docs-sidebar-menu li a:hover i {
    color: #4a6cf7;
}

.docs-sidebar-menu li a.active {
    background: #eef2ff;
    color: #4a6cf7;
    font-weight: 500;
}

.docs-content {
    flex: 1;
    min-width: 0;
    padding: 28px 36px 44px;
    overflow-x: auto;
}

.docs-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 16px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f0f2f5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.docs-content h2 i {
    color: #4a6cf7;
}

.docs-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin: 28px 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.docs-content h3::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 16px;
    background: linear-gradient(180deg, #4a6cf7, #7c3aed);
    border-radius: 2px;
}

.docs-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    margin: 22px 0 10px;
}

.docs-content p {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.85;
    margin: 8px 0;
}

.docs-content ul,
.docs-content ol {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.9;
    padding-left: 22px;
    margin: 8px 0;
}

.docs-content li {
    margin: 4px 0;
}

.docs-content code {
    background: #f7fafc;
    padding: 2px 7px;
    border-radius: 4px;
    font-family: 'Courier New', Monaco, monospace;
    font-size: 13px;
    color: #d53f8c;
    border: 1px solid #edf2f7;
}

.docs-content a {
    color: #4a6cf7;
    text-decoration: none;
}

.docs-content a:hover {
    text-decoration: underline;
}

/* ============================================================
   接口地址行
   ============================================================ */
.endpoint-line {
    background: linear-gradient(135deg, #f8fafc, #f0f5ff);
    border: 1px solid #e8edf7;
    border-radius: 10px;
    padding: 14px 18px;
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 14px;
}

.endpoint-line .label {
    color: #a0aec0;
    font-size: 13px;
    min-width: 96px;
    font-weight: 500;
}

.endpoint-line .value {
    font-family: 'Courier New', monospace;
    color: #4a6cf7;
    word-break: break-all;
    font-size: 13px;
    flex: 1;
}

.endpoint-line .method {
    padding: 3px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .5px;
}

.endpoint-line .method.post {
    background: linear-gradient(135deg, #4a6cf7, #6a8cff);
}

.endpoint-line .method.get {
    background: linear-gradient(135deg, #38a169, #48bb78);
}

.copy-inline-btn {
    background: #fff;
    border: 1px solid #d0d9f0;
    color: #4a6cf7;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: .2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.copy-inline-btn:hover {
    background: #f0f5ff;
}

/* ============================================================
   参数表格
   ============================================================ */
.param-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin: 12px 0;
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 10px;
    overflow: hidden;
}

.param-table th {
    background: linear-gradient(135deg, #f8f9fa, #eef2f7);
    padding: 12px 14px;
    text-align: left;
    color: #2d3748;
    font-weight: 600;
    border-bottom: 1px solid #e8ecf1;
    font-size: 13px;
    white-space: nowrap;
}

.param-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f0f2f5;
    color: #4a5568;
    vertical-align: top;
    line-height: 1.7;
}

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

.param-table tr:hover td {
    background: #fafbfc;
}

.param-table td code {
    font-size: 12px;
}

.param-table .required {
    color: #e53e3e;
    font-weight: 700;
    font-size: 12px;
    background: #fff5f5;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.param-table .optional {
    color: #718096;
    font-size: 12px;
    background: #f7fafc;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

/* ============================================================
   代码块
   ============================================================ */
.code-block-wrap {
    margin: 14px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2a2a4a;
    background: #1a1a2e;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

.code-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #252545;
    color: #a0aec0;
    padding: 10px 18px;
    font-size: 12px;
    font-family: monospace;
    border-bottom: 1px solid #2a2a4a;
}

.code-block-header .lang {
    color: #6a8cff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.code-block-header .copy-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .15);
    color: #a0aec0;
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: .2s;
}

.code-block-header .copy-btn:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border-color: rgba(255, 255, 255, .3);
}

.code-block {
    background: #1a1a2e;
    color: #e2e8f0;
    padding: 18px 22px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.7;
    font-family: 'Courier New', Monaco, monospace;
    margin: 0;
}

/* ============================================================
   提示框
   ============================================================ */
.alert-box {
    background: #fffbeb;
    border-left: 4px solid #f6ad55;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    color: #92400e;
    margin: 14px 0;
    line-height: 1.75;
}

.alert-info {
    background: #ebf8ff;
    border-left-color: #4299e1;
    color: #2c5282;
}

.alert-success {
    background: #f0fff4;
    border-left-color: #48bb78;
    color: #22543d;
}

.alert-error {
    background: #fff5f5;
    border-left-color: #fc8181;
    color: #9b2c2c;
}

.alert-box strong {
    font-weight: 600;
}

.alert-box ul {
    margin: 6px 0 0 18px;
    padding-left: 8px;
}

/* ============================================================
   模式对比卡
   ============================================================ */
.mode-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0;
}

.mode-card {
    border-radius: 12px;
    padding: 20px;
    border: 2px solid;
    position: relative;
}

.mode-card.free {
    background: linear-gradient(135deg, #f0fff4, #e6fffa);
    border-color: #9ae6b4;
}

.mode-card.paid {
    background: linear-gradient(135deg, #fef5e7, #fff8e1);
    border-color: #f6e05e;
}

.mode-card .mode-tag {
    position: absolute;
    top: -10px;
    left: 16px;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.mode-card.free .mode-tag {
    background: #38a169;
}

.mode-card.paid .mode-tag {
    background: #ed8936;
}

.mode-card h4 {
    margin: 8px 0 10px;
    font-size: 15px;
    color: #1a202c;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mode-card ul {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    color: #4a5568;
    line-height: 1.8;
}

.mode-card ul li::marker {
    color: #38a169;
}

.mode-card.paid ul li::marker {
    color: #ed8936;
}

@media (max-width: 600px) {
    .mode-compare {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   套餐卡
   ============================================================ */
.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.price-card {
    border: 2px solid #eef2f6;
    border-radius: 14px;
    padding: 22px 20px;
    background: #fff;
    transition: all .25s;
    position: relative;
    overflow: hidden;
}

.price-card:hover {
    border-color: #4a6cf7;
    box-shadow: 0 12px 32px rgba(74, 108, 247, .12);
    transform: translateY(-4px);
}

.price-card .pkg-label {
    font-size: 12px;
    color: #718096;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.price-card .pkg-price {
    font-size: 36px;
    font-weight: 700;
    color: #4a6cf7;
    margin: 10px 0 4px;
    line-height: 1;
    letter-spacing: -1px;
}

.price-card .pkg-price sup {
    font-size: 18px;
    font-weight: 500;
    vertical-align: super;
    margin-right: 2px;
}

.price-card .pkg-credits {
    font-size: 15px;
    color: #1a202c;
    font-weight: 600;
    margin-bottom: 4px;
}

.price-card .pkg-bonus {
    font-size: 12px;
    color: #e53e3e;
    display: inline-block;
    background: linear-gradient(135deg, #fff5f5, #fed7d7);
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 500;
    margin-top: 4px;
}

.price-card .pkg-unit {
    font-size: 12px;
    color: #a0aec0;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #edf2f7;
    line-height: 1.6;
}

.price-card.hot {
    border-color: #f6e05e;
    background: linear-gradient(145deg, #fffbeb, #fff);
}

.price-card.hot::after {
    content: '🔥 推荐';
    position: absolute;
    top: 12px;
    right: -30px;
    background: linear-gradient(135deg, #f89250, #f1404b);
    color: #fff;
    font-size: 11px;
    padding: 3px 36px;
    transform: rotate(35deg);
    font-weight: 600;
}

/* ============================================================
   视频计费说明
   ============================================================ */
.video-billing-card {
    background: linear-gradient(135deg, #eef2ff 0%, #f0f7ff 100%);
    border: 2px dashed #d0d9f0;
    border-radius: 14px;
    padding: 20px 24px;
    margin: 18px 0;
}

.video-billing-card .vb-title {
    font-size: 15px;
    font-weight: 700;
    color: #4a6cf7;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.video-billing-card .vb-formula {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: #fff;
    padding: 14px 20px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(74, 108, 247, .06);
}

.video-billing-card .vb-formula .highlight {
    color: #e53e3e;
    background: #fff5f5;
    padding: 2px 10px;
    border-radius: 6px;
}

.video-billing-card .vb-examples {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    font-size: 13px;
    color: #4a5568;
}

.video-billing-card .vb-examples div {
    background: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #eef2f6;
}

.video-billing-card .vb-examples div span:last-child {
    color: #4a6cf7;
    font-weight: 600;
}

/* ============================================================
   在线调试面板
   ============================================================ */
.debug-panel {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border: 1px solid #eef2f6;
    border-radius: 14px;
    padding: 24px;
    margin: 16px 0;
    box-shadow: 0 2px 12px rgba(74, 108, 247, .04);
}

.debug-form-group {
    margin-bottom: 16px;
}

.debug-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 6px;
}

.debug-form-group input,
.debug-form-group select,
.debug-form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13.5px;
    outline: none;
    transition: all .2s;
    font-family: inherit;
    background: #fff;
    box-sizing: border-box;
}

.debug-form-group input:focus,
.debug-form-group select:focus,
.debug-form-group textarea:focus {
    border-color: #4a6cf7;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, .1);
}

.debug-form-group textarea {
    min-height: 100px;
    resize: vertical;
    font-family: 'Courier New', monospace;
}

.debug-submit-btn {
    background: linear-gradient(135deg, #4a6cf7, #6a8cff);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(74, 108, 247, .25);
    font-family: inherit;
}

.debug-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 108, 247, .35);
}

.debug-submit-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.debug-result {
    margin-top: 16px;
    background: #1a1a2e;
    color: #e2e8f0;
    padding: 18px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    max-height: 500px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.7;
}

/* ============================================================
   演示视频
   ============================================================ */
.demo-video-box {
    background: #1a1a2e;
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
}

.demo-video-wrap {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-video-wrap video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 400px;
    background: #000;
    object-fit: contain;
}

.demo-tip {
    text-align: center;
    font-size: 12px;
    color: #a0aec0;
    margin-top: 12px;
    line-height: 1.6;
}

/* ============================================================
   Tab 面板显示控制
   ============================================================ */
.docs-panel {
    display: none;
}

.docs-panel.active {
    display: block;
    animation: fadeIn .3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   已下线标记
   ============================================================ */
.deprecated-tag {
    background: linear-gradient(135deg, #e53e3e, #fc8181);
    color: #fff;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
    margin-left: 8px;
}

/* ============================================================
   TTS 音色卡
   ============================================================ */
.tts-voice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin: 14px 0;
}

.tts-voice-card {
    background: linear-gradient(135deg, #f8fafc, #f0f5ff);
    border: 1px solid #eef2f6;
    border-radius: 12px;
    padding: 14px 16px;
    transition: all .25s;
}

.tts-voice-card:hover {
    border-color: #4a6cf7;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(74, 108, 247, .08);
}

.tts-voice-card .voice-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tts-voice-card .voice-name code {
    font-size: 12px;
    color: #4a6cf7;
    background: rgba(74, 108, 247, .08);
    padding: 1px 8px;
    border-radius: 20px;
    border: none;
}

.tts-voice-card .voice-desc {
    font-size: 12px;
    color: #718096;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 900px) {
    .docs-hero {
        padding: 26px 24px;
        border-radius: 16px;
    }
    .docs-hero h1 { font-size: 22px; }
    .docs-hero p { font-size: 14px; }
    .docs-hero .hero-tag { font-size: 11px; padding: 3px 11px; }
    .docs-hero .hero-btn { padding: 10px 22px; font-size: 13px; }

    .docs-sidebar { display: none; }
    .docs-content { padding: 22px 20px 36px; }
    .docs-top-tabs { padding: 0 12px; }
    .docs-top-tab { padding: 14px 14px; font-size: 13px; }
}

@media (max-width: 600px) {
    .docs-hero {
        padding: 20px 16px;
        border-radius: 14px;
    }
    .docs-hero-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .docs-hero h1 { font-size: 19px; }
    .docs-hero p { font-size: 13px; }
    .docs-hero .hero-tags { gap: 6px; margin-top: 10px; }
    .docs-hero .hero-tag { font-size: 10.5px; padding: 3px 10px; }
    .docs-hero .hero-btn {
        width: 100%;
        justify-content: center;
        padding: 11px 18px;
        font-size: 13px;
    }

    .docs-content h2 { font-size: 18px; }
    .docs-content h3 { font-size: 15px; }
    .param-table { font-size: 12px; }
    .param-table th, .param-table td { padding: 8px 10px; }
    .code-block { font-size: 12px; padding: 14px 16px; }
    .price-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .price-card { padding: 16px 12px; }
    .price-card .pkg-price { font-size: 26px; }
    .price-card.hot::after { font-size: 10px; padding: 2px 28px; }
    .tts-voice-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}

@media (max-width: 400px) {
    .price-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   深色模式
   ============================================================ */
body.dark-mode .docs-hero {
    background: #16213e;
    border-color: #2a3a5a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

body.dark-mode .docs-hero::before {
    background: linear-gradient(180deg, #6a8cff, #a78bfa);
    opacity: 0.75;
}

body.dark-mode .docs-hero::after {
    background: radial-gradient(circle, rgba(106, 140, 255, 0.06), transparent 70%);
}

body.dark-mode .docs-hero h1 {
    color: #e2e8f0;
}

body.dark-mode .docs-hero p {
    color: #a0aec0;
}

body.dark-mode .docs-hero .hero-tag {
    background: #1a2a4a;
    color: #a0aec0;
    border-color: #2a3a5a;
}

body.dark-mode .docs-hero .hero-tag i {
    color: #6a8cff;
}

body.dark-mode .docs-hero .hero-tag:hover {
    border-color: #4a6cf7;
    color: #6a8cff;
    background: #1e2a4a;
}

body.dark-mode .api-docs-wrap {
    background: #16213e;
    border-color: #2a3a5a;
}

body.dark-mode .docs-top-tabs {
    background: #16213e;
    border-bottom-color: #2a3a5a;
}

body.dark-mode .docs-top-tab {
    color: #a0aec0;
}

body.dark-mode .docs-top-tab.active {
    color: #6a8cff;
    border-bottom-color: #6a8cff;
}

body.dark-mode .docs-sidebar {
    background: #1a2a4a;
    border-right-color: #2a3a5a;
}

body.dark-mode .docs-sidebar-menu li a {
    color: #a0aec0;
}

body.dark-mode .docs-sidebar-menu li a:hover,
body.dark-mode .docs-sidebar-menu li a.active {
    background: #2a3a5a;
    color: #6a8cff;
}

body.dark-mode .docs-content h2 {
    color: #e2e8f0;
    border-bottom-color: #2a3a5a;
}

body.dark-mode .docs-content h3,
body.dark-mode .docs-content h4 {
    color: #e2e8f0;
}

body.dark-mode .docs-content p,
body.dark-mode .docs-content ul,
body.dark-mode .docs-content ol {
    color: #a0aec0;
}

body.dark-mode .docs-content code {
    background: #1a2a4a;
    border-color: #2a3a5a;
    color: #fbb6ce;
}

body.dark-mode .endpoint-line {
    background: linear-gradient(135deg, #1a2a4a, #1e2a4a);
    border-color: #2a3a5a;
}

body.dark-mode .endpoint-line .value {
    color: #6a8cff;
}

body.dark-mode .copy-inline-btn {
    background: #2a3a5a;
    border-color: #3a4a6a;
    color: #6a8cff;
}

body.dark-mode .param-table {
    background: #16213e;
    border-color: #2a3a5a;
}

body.dark-mode .param-table th {
    background: linear-gradient(135deg, #1a2a4a, #1e2a4a);
    color: #a0aec0;
    border-bottom-color: #2a3a5a;
}

body.dark-mode .param-table td {
    color: #cbd5e0;
    border-bottom-color: #2a3a5a;
}

body.dark-mode .param-table tr:hover td {
    background: #1a2a4a;
}

body.dark-mode .price-card {
    background: #16213e;
    border-color: #2a3a5a;
}

body.dark-mode .price-card .pkg-credits {
    color: #e2e8f0;
}

body.dark-mode .price-card .pkg-unit {
    border-top-color: #2a3a5a;
}

body.dark-mode .price-card.hot {
    background: linear-gradient(145deg, #2a2a1a, #16213e);
    border-color: #5a4a2a;
}

body.dark-mode .mode-card.free {
    background: linear-gradient(135deg, #1a3a2a, #16213e);
    border-color: #2f855a;
}

body.dark-mode .mode-card.paid {
    background: linear-gradient(135deg, #2a2a1a, #16213e);
    border-color: #5a4a2a;
}

body.dark-mode .mode-card h4 {
    color: #e2e8f0;
}

body.dark-mode .mode-card ul {
    color: #a0aec0;
}

body.dark-mode .video-billing-card {
    background: linear-gradient(135deg, #1a2a4a, #1e2a4a);
    border-color: #3a4a6a;
}

body.dark-mode .video-billing-card .vb-formula {
    background: #16213e;
    color: #e2e8f0;
}

body.dark-mode .video-billing-card .vb-examples div {
    background: #16213e;
    border-color: #2a3a5a;
    color: #a0aec0;
}

body.dark-mode .alert-box {
    background: #2a2a1a;
    color: #f6d365;
}

body.dark-mode .alert-info {
    background: #1a2a4a;
    color: #6a8cff;
}

body.dark-mode .debug-panel {
    background: linear-gradient(135deg, #1a2a4a, #16213e);
    border-color: #2a3a5a;
}

body.dark-mode .debug-form-group label {
    color: #cbd5e0;
}

body.dark-mode .debug-form-group input,
body.dark-mode .debug-form-group select,
body.dark-mode .debug-form-group textarea {
    background: #16213e;
    border-color: #2a3a5a;
    color: #e2e8f0;
}

body.dark-mode .tts-voice-card {
    background: linear-gradient(135deg, #1a2a4a, #1e2a4a);
    border-color: #2a3a5a;
}

body.dark-mode .tts-voice-card:hover {
    border-color: #4a6cf7;
}

body.dark-mode .tts-voice-card .voice-name {
    color: #e2e8f0;
}

body.dark-mode .tts-voice-card .voice-desc {
    color: #a0aec0;
}