/* ===== 文档页布局 ===== */


/* 标题样式 */
.docs-h1 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.docs-h2 {
    font-size: 16px;
    font-weight: 600;
    color: #4a5568;
    margin: 30px 0 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.docs-show-h2 {
    font-size: 15px;
    font-weight: 600;
    color: #5f5f5f;
}

.docs-accordion-item {
    counter-increment: section;
}

.docs-show-h2::before {
    content: counter(section, cjk-ideographic) "、";
    margin-right: 0px;
}

.docs-h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.docs-h3 {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin: 25px 0 12px;
}
.docs-install-h3 {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin: 12px 0px 12px 8px;
}
.docs-lead {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.7;
}

.docs-layout {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-flex-align: flex-start;
    -ms-flex-align: flex-start;
    align-items: flex-start;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
}

.docs-layout>.docs-sidebar {
    -webkit-flex: 0 0 150px;
    -ms-flex: 0 0 160px;
    flex: 0 0 150px;
    width: 150px;
    margin-right: 30px;
}

.docs-layout>.docs-main {
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

@media screen and (-ms-high-contrast: active),
(-ms-high-contrast: none) {
    .docs-layout>.docs-sidebar {
        margin-right: 30px;
    }

    .docs-layout>.docs-main {
        margin-right: 0;
    }
}

@supports (gap: 30px) {
    .docs-layout {
        gap: 30px;
    }

    .docs-layout>.docs-sidebar {
        margin-right: 0;
    }
}

/* 侧边栏 */
.docs-sidebar {
    width: 240px;
    flex-shrink: 0;
}

.sidebar-box {
    background: #fff;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.sidebar-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

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

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav a {
    display: block;
    height: 20px;
    line-height: 20px;
    padding: 10px 12px;
    color: #666;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: #667eea;
    color: #fff;
}

.sidebar-nav a i {
    margin-right: 8px;
    font-size: 18px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.mt15 {
    margin-top: 15px;
}

.bg-white {
    border-radius: 10px;
    box-sizing: border-box;
}

/* 主内容 */
.docs-main {
    flex: 1;
    min-width: 0;
}

/* 英雄区域 */
.docs-hero {
    background: #e4e7ed;
    color: #515461;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
}

.docs-hero h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.docs-hero p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.hero-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn-start {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600;
    transition: all 0.3s;
    height: 36px;
}

.hero-btn-start:hover {
    background: linear-gradient(135deg, #ee5a5a 0%, #f9c04a 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.hero-btn-docs {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600;
    transition: all 0.3s;
    height: 36px;
}

.hero-btn-docs:hover {
    background: linear-gradient(135deg, #0f8a80 0%, #32d970 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 239, 125, 0.35);
}

.hero-btn-github {
    background: #24292e !important;
    border: 1px solid #444 !important;
    color: #fff !important;
    font-weight: 600;
    transition: all 0.3s;
    height: 36px;
}

.hero-btn-github:hover {
    background: #444d56 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(36, 41, 46, 0.4);
}

/* 统计数据 */
.docs-stats {
    display: flex;
    justify-content: space-around;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

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

.stat-num {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

/* 章节标题 */
.docs-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.docs-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 17px;
    font-weight: 600;
    color: #505051;
    margin-bottom: 10px;
}

.section-title i {
    margin-right: 8px;
    color: #667eea;
    font-size: 20px;
}

.section-desc {
    color: #666;
    margin-bottom: 25px;
    font-size: 13px;
}
.docs-h2 i {
    margin-right: 8px;
    color: #667eea;
    font-size: 20px;
}
.docs-h3 i {
    margin-right: 8px;
    color: #718096;
    font-size: 15px;
}
.docs-install-h3 i {
    margin-right: 8px;
    font-size: 15px;
	color: #667eea;
}
.lottery-category .category-title i {
    margin-right: 8px;
    color: #667eea;
    font-size: 20px;
}
.info-box.warning h4 i {
    margin-right: 8px;
    color: #d48806;
    font-size: 15px;
}
.docs-note i {
    margin-right: 8px;
    color: #FF9800;
    font-size: 15px;
}
/* SDK卡片 */
.sdk-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.sdk-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0px 15px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #eee;
}

.sdk-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.sdk-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.sdk-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.sdk-card p {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.sdk-tags {
    display: flex;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.sdk-tags span {
    background: #e8e8e8;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
}

.sdk-code {
    background: #1e1e1e;
    color: #9cdcfe;
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    margin-bottom: 15px;
    font-family: 'Consolas', monospace;
}

/* 彩种类型 */
.lottery-types {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.type-item {
    background: #f8f9fa;
    padding: 20px 10px;
    border-radius: 8px;
	text-align: center;
}

.type-item h4 {
    font-size: 15px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #667eea;
}

.type-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.type-item li {
    padding: 6px 0;
	text-align: center; 
}

.type-item a {
    color: #666;
    font-size: 14px;
}

.type-item a:hover {
    color: #667eea;
}

.api-example {
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    border: 1px solid #e8eef7;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.api-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #4a5568;
}

.api-desc {
    font-size: 13px;
    color: #6b7c93;
    margin-bottom: 16px;
    line-height: 1.6;
}

.api-url-box {
    background: #0f172a;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 14px;
    position: relative;
}

.api-url-box .label {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 6px;
}

.api-url {
    color: #38bdf8;
    font-size: 13px;
    word-break: break-all;
}

.api-params-title {
    font-size: 13px;
    font-weight: 600;
    margin: 10px 0;
    color: #334155;
}

.api-note-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.api-note-list li {
    display: flex;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px dashed #e5e7eb;
    font-size: 13px;
}

.api-note-list li:last-child {
    border-bottom: none;
}

.param {
    min-width: 70px;
    font-weight: 600;
    color: #2563eb;
}

.desc {
    color: #475569;
}

/* 功能特性 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.feature-item i {
    font-size: 36px;
    color: #667eea;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 13px;
    color: #666;
}

/* 代码块 */
.layui-code {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: 0 0 4px 4px;
    font-family: 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.6;
	border: 0;
    border-left-width: 0;
}

/* 响应式 */
@media (max-width: 1200px) {
    .sdk-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .docs-layout {
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .docs-layout>.docs-sidebar {
        width: 100% !important;
        -webkit-flex: none !important;
        -ms-flex: none !important;
        flex: none !important;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .docs-layout>.docs-main {
        margin-right: 0;
    }

    .sidebar-box {
        padding: 12px;
    }

    .sidebar-nav {
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        gap: 8px;
    }

    .sidebar-nav li {
        margin: 0 4px 4px 0;
    }

    .sidebar-nav a {
        padding: 10px 16px;
        background: #f0f0f0;
    }
}

@media (max-width: 768px) {
    .docs-hero {
        padding: 25px;
    }

    .docs-hero h1 {
        font-size: 22px;
    }

    .docs-stats {
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        gap: 20px;
    }

    .sdk-cards,
    .lottery-types,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .docs-sidebar {
        margin-bottom: 0;
    }

    .sidebar-box {
        padding: 10px;
    }

    .sidebar-nav a {
        padding: 8px 14px;
    }

    .params-table {
        display: block;
        width: max-content;
        min-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        table-layout: auto;
    }

    .docs-param-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: max-content;
        min-width: 100%;
    }

    .api-base-url {
        padding: 12px 15px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .api-base-url code {
        font-size: 11px;
        word-break: break-all;
        width: 100%;
    }

    .docs-pagination {
        flex-direction: column;
        gap: 10px;
    }

    .docs-pagination a {
        text-align: center;
    }

    .layui-tab {
        overflow: hidden;
    }

    .layui-tab-title {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        font-size: 12px;
    }

    .layui-tab-title li {
        padding: 0 12px !important;
        font-size: 13px !important;
        min-width: auto;
    }

    .layui-tab-content {
        padding: 15px 10px;
    }

    .layui-tab-content .layui-code {
        font-size: 12px;
        padding: 15px;
    }

    .docs-dev-links {
        grid-template-columns: 1fr;
    }

    .docs-download-grid {
        grid-template-columns: 1fr 1fr;
    }

    .docs-layout {
        padding: 0 5px;
    }
}

@media (max-width: 480px) {
    .sidebar-nav a {
        padding: 6px 10px;
    }

    .params-table {
        font-size: 12px;
    }

    .params-table th,
    .params-table td {
        padding: 8px 10px;
    }

    .docs-h1 {
        font-size: 20px;
    }

    .docs-h2 {
        font-size: 15px;
    }

    .docs-h3 {
        font-size: 13px;
    }

    .docs-lead {
        font-size: 14px;
    }

    .code-block code {
        font-size: 12px;
    }

    .code-block pre {
        padding: 12px;
    }

    .info-box {
        padding: 10px 12px;
    }

    .info-box h4 {
        font-size: 14px;
    }

    .docs-dev-card {
        padding: 12px;
    }

    .docs-dev-card p {
        font-size: 13px;
    }

    .docs-download-grid {
        grid-template-columns: 1fr;
    }

    .docs-api-box {
        font-size: 11px;
        padding: 10px 12px;
    }

    .docs-tip-box {
        padding: 8px 12px;
        font-size: 12px;
    }

    .docs-pagination a {
        padding: 8px 15px;
        font-size: 13px;
    }

    .docs-layout {
        padding: 0 3px;
    }
}

@media (max-width: 380px) {
    .docs-layout {
        padding: 0;
    }

    .docs-sidebar {
        width: calc(100% + 0px) !important;
    }

    .sidebar-box {
        padding: 8px;
    }

    .sidebar-nav {
        gap: 5px;
    }

    .sidebar-nav li {
        margin: 0 2px 3px 0;
    }

    .sidebar-nav a {
        padding: 5px 8px;
    }

    .sidebar-nav a i {
        font-size: 14px;
        margin-right: 4px;
    }

    .docs-main {
        width: 100%;
    }

    .docs-h1 {
        font-size: 18px;
    }

    .docs-h2 {
        font-size: 16px;
    }

    .docs-h3 {
        font-size: 14px;
    }

    .docs-lead {
        font-size: 13px;
    }

    .code-block code {
        font-size: 11px;
    }

    .code-block pre {
        padding: 10px;
    }

    .api-base-url code {
        font-size: 10px;
    }

    .params-table {
        font-size: 11px;
    }

    .params-table th,
    .params-table td {
        padding: 6px 8px;
    }

    .info-box {
        padding: 8px 10px;
    }

    .info-box h4 {
        font-size: 13px;
    }

    .info-box ul li {
        font-size: 12px;
    }

    .docs-pagination a {
        padding: 7px 12px;
        font-size: 12px;
    }

    .layui-tab-title li {
        padding: 0 10px !important;
        font-size: 12px !important;
    }

    .layui-tab-content .layui-code {
        font-size: 11px;
        padding: 10px;
    }

    .docs-dev-card {
        padding: 10px;
    }

    .docs-dev-card p {
        font-size: 12px;
    }
}

/* ===== API文档页样式 ===== */
.api-base-url {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 5px 0px 15px 0px;
}

.method {
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
}

.method-get {
    background: #52c41a;
    color: #fff;
}

.api-base-url code {
    color: #9cdcfe;
    font-family: 'Consolas', monospace;
}

/* 参数表格 */
.params-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 14px;
}

.params-table th,
.params-table td {
    padding: 12px 15px;
    border: 1px solid #e8e8e8;
    text-align: left;
}

.params-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.params-table tr:hover {
    background: #fafafa;
}

.params-table code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
}

.required {
    color: #f5222d;
    font-weight: 600;
}

.optional {
    color: #52c41a;
    font-weight: 600;
}

/* 代码块 */
.code-block {
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    margin: 15px 0;
}

.code-header {
    background: #2d2d2d;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    font-size: 13px;
}

.copy-btn {
    background: #3d3d3d;
    border: none;
    color: #999;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.copy-btn:hover {
    background: #4d4d4d;
    color: #fff;
}

.code-block pre {
    padding: 20px;
    overflow-x: auto;
    margin: 0;
}

.code-block code {
    color: #d4d4d4;
    font-family: 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.6;
}

/* 信息框 */
.info-box {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 15px 0;
}

.info-box h4 {
    margin-bottom: 10px;
    font-size: 15px;
}

.info-box.warning {
    background: #fffbe6;
    border-color: #ffe58f;
}

.info-box.warning h4 {
    color: #d48806;
}

/* FAQ样式 */
.faq-item {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 15px 20px;
    background: #f8f9fa;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: #f0f0f0;
}

.faq-question::after {
    content: '+';
    font-size: 20px;
    font-weight: 300;
    color: #667eea;
}

.faq-question.active::after {
    content: '-';
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-answer.show {
    padding: 20px;
    max-height: 1000px;
}

/* 快速接入步骤 */
.steps-overview {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    align-items: center;
    gap: 0;
    margin: 5px 0px 15px 0px;
}

.step-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 16px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    grid-column: span 1;
    box-sizing: border-box;
    min-width: 200px;
}

.step-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    min-width: 0;
    overflow: hidden;
}

.step-content h3 {
    font-size: 13px;
    margin-bottom: 2px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.step-content p {
    font-size: 11px;
    opacity: 0.9;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.step-arrow {
    display: block;
    width: 20px;
    min-width: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.step-arrow::before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 10px solid #667eea;
    margin: 0 auto;
}

/* Tablet: 2-column grid */
@media (max-width: 900px) {
    .steps-overview {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        row-gap: 10px;
    }

    .step-card {
        grid-column: span 1;
    }

    .step-arrow {
        display: none;
    }
}

/* Mobile small: single column stacked */
@media (max-width: 480px) {
    .steps-overview {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .step-card {
        flex-direction: row;
        padding: 14px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 14px;
    }

    .step-content h3 {
        font-size: 14px;
    }

    .step-content p {
        font-size: 12px;
    }
}

.step-list {
    margin-left: 20px;
}

.step-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* 彩种表格 */
.lottery-search {
    display: flex;
    gap: 10px;
    margin: 5px 0px 15px 0px;
}

@media screen and (min-width: 0\0) {
    .lottery-search>* {
        margin-right: 10px;
    }

    .lottery-search>*:last-child {
        margin-right: 0;
    }
}

@supports (gap: 10px) {
    .lottery-search>* {
        margin-right: 0 !important;
    }
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
}

.search-btn {
    padding: 10px 20px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

@media screen and (min-width: 0\0) {
    .category-tabs>.category-tab {
        margin-right: 8px;
        margin-bottom: 8px;
    }
}

@supports (gap: 8px) {
    .category-tabs>.category-tab {
        margin-right: 0 !important;
        margin-bottom: 0 !important;
    }
}

.category-tab {
    padding: 8px 15px;
    background: #f0f0f0;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
}

.category-tab.active {
    background: #667eea;
    color: #fff;
}

.lottery-category {
    margin-bottom: 30px;
}

.category-title {
    font-size: 18px;
    padding-bottom: 10px;
    border-bottom: 3px solid #97a4df;
	color: #4a5568;
    margin-bottom: 15px;
	font-weight: 600 !important;
}

.lottery-table {
    width: 100%;
    border-collapse: collapse;
}

.lottery-table th,
.lottery-table td {
    padding: 10px 12px;
    border: 1px solid #e8e8e8;
    text-align: left;
}

.lottery-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.lottery-table tr:hover {
    background: #fafafa;
}

/* 分页导航 */
.docs-pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
}

.docs-pagination a {
    display: inline-block;
    padding: 10px 20px;
    background: #f0f0f0;
    border-radius: 6px;
    color: #333;
    font-weight: 500;
}

.docs-pagination a:hover {
    background: #667eea;
    color: #fff;
}

/* ===== 章节折叠卡片 ===== */
.docs-accordion-item {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid #e8ecf0;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(102, 126, 234, 0.04);
    transition: all 0.3s;
}

.docs-accordion-item:hover {
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.10);
}

.docs-accordion-item.open {
    border-color: #667eea;
    box-shadow: 0 3px 16px rgba(102, 126, 234, 0.12);
}

.docs-accordion-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
}

.docs-accordion-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    font-weight: 600;
}

.docs-accordion-icon.blue {
    background: #dbeafe;
    color: #2563eb;
}

.docs-accordion-icon.orange {
    background: #ffedd5;
    color: #ea580c;
}

.docs-accordion-icon.green {
    background: #dcfce7;
    color: #16a34a;
}

.docs-accordion-icon.purple {
    background: #f3e8ff;
    color: #9333ea;
}

.docs-accordion-icon.red {
    background: #fee2e2;
    color: #dc2626;
}

.docs-accordion-icon.teal {
    background: #ccfbf1;
    color: #0d9488;
}

.docs-accordion-icon.yellow {
    background: #fef9c3;
    color: #ca8a04;
}

.docs-accordion-title {
    flex: 1;
}

.docs-accordion-title h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 2px;
}

.docs-accordion-title p {
    font-size: 12px;
    color: #a0aec0;
    margin: 0;
}

.docs-accordion-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f7f9fc;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.docs-accordion-arrow i {
    font-size: 12px;
    color: #a0aec0;
    transition: all 0.3s;
}

.docs-accordion-item.open .docs-accordion-arrow {
    background: #eef0ff;
}

.docs-accordion-item.open .docs-accordion-arrow i {
    color: #667eea;
    transform: rotate(180deg);
}

.docs-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.docs-accordion-item.open .docs-accordion-body {
    max-height: 4000px;
}

.docs-accordion-content {
    padding: 0 20px 20px;
    border-top: 1px solid #f1f5f9;
}

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

.docs-accordion-content p:first-child {
    margin-top: 16px;
}

.docs-accordion-content strong {
    color: #2d3748;
}

.docs-accordion-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

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

.docs-highlight {
    color: #f56565;
    font-weight: 600;
}

.docs-danger {
    color: #f56565;
    font-weight: 600;
}

/* 信息提示条 */
.docs-tip-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 12px 0;
    font-size: 13px;
    color: #ea580c;
    line-height: 1.5;
}

.docs-tip-box i {
    margin-top: -3px;
    flex-shrink: 0;
}

/* API地址框 */
.docs-api-box {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 12px 0;
    font-family: 'Consolas', 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #9cdcfe;
    overflow-x: auto;
    line-height: 1.7;
}

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

.docs-param-table thead {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.docs-param-table th {
    padding: 11px 14px;
    text-align: left;
    font-weight: 600;
    color: #2d3748;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 2px solid #e2e8f0;
}

.docs-param-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #4a5568;
    vertical-align: middle;
}

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

.docs-param-table tbody tr:hover {
    background: #f7f9fc;
}

.docs-param-name {
    font-weight: 600;
    color: #1a202c;
    font-family: 'Consolas', 'JetBrains Mono', monospace;
    font-size: 12px;
}

.docs-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.docs-badge-req {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.docs-badge-opt {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.docs-param-demo {
    font-family: 'Consolas', 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #718096;
    background: #f7f9fc;
    padding: 2px 7px;
    border-radius: 4px;
}

/* 下载网格 */
.docs-download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.docs-download-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #f7f9fc;
    border: 1px solid #e8ecf0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.docs-download-item:hover {
    background: #eef0ff;
    border-color: #667eea;
    transform: translateX(3px);
}

.docs-download-icon {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: #ffedd5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #ea580c;
    flex-shrink: 0;
}

.docs-download-icon.github {
    background: #dcfce7;
    color: #16a34a;
}

.docs-download-icon.soon {
    background: #f1f5f9;
    color: #a0aec0;
}

.docs-download-info {
    flex: 1;
    min-width: 0;
}

.docs-download-name {
    font-size: 12px;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.3;
}

.docs-download-tag {
    font-size: 10px;
    color: #a0aec0;
    margin-top: 2px;
}

.docs-download-tag.new {
    color: #16a34a;
    font-weight: 500;
}

/* 开发者卡片 */
.docs-dev-card {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px;
}

.docs-dev-card p {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 16px;
    line-height: 1.7;
}

.docs-dev-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.docs-dev-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.docs-dev-link:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.10);
}

.docs-dev-link-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.docs-dev-link-icon.sdk {
    background: #dbeafe;
    color: #2563eb;
}

.docs-dev-link-icon.doc {
    background: #dcfce7;
    color: #16a34a;
}

.docs-dev-link-icon.sample {
    background: #fef9c3;
    color: #ca8a04;
}

.docs-dev-link-title {
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
}

.docs-dev-link-url {
    font-size: 11px;
    color: #a0aec0;
    margin-top: 1px;
    word-break: break-all;
}

.docs-sdk-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.docs-sdk-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
}

.docs-sdk-badge.csharp {
    background: #f3e8ff;
    color: #7c3aed;
}

.docs-sdk-badge.php {
    background: #ede9fe;
    color: #6d28d9;
}

.docs-sdk-badge.js {
    background: #fef9c3;
    color: #854d0e;
}

/* 免责声明列表 */
.docs-disclaimer-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}

.docs-disclaimer-list li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 8px;
    color: #4a5568;
    font-size: 13px;
    line-height: 1.7;
}

.docs-disclaimer-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #cbd5e0;
}

/* ===== 用户中心风格的左侧导航 ===== */
.uc-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(31, 56, 100, 0.07);
    padding: 15px;
    box-sizing: border-box;
}

.docs-sidebar {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(31, 56, 100, 0.07);
    overflow: hidden;
    font-family: "Helvetica Neue", Arial, "Microsoft Yahei", sans-serif;
    padding: 0;
}

.docs-sidebar .sidebar-box {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin: 0;
}

.docs-sidebar .sidebar-box.mt15 {
    margin-top: 0;
    border-top: 1px dashed #eef2f7;
    padding-top: 8px;
}

.docs-sidebar .sidebar-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #98a2b3;
    padding: 6px 22px 10px;
    font-weight: 600;
    margin: 0;
    border-bottom: none;
    background: transparent;
}

.docs-sidebar .sidebar-title i {
    margin-right: 6px;
    font-size: 11px;
    color: #b1bac9;
}

.docs-sidebar .sidebar-nav {
    margin: 0;
    padding: 0 8px 8px;
    list-style: none;
}

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

.docs-sidebar .sidebar-nav a {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    padding: 10px 14px;
    margin: 4px 0;
    border-radius: 8px;
    color: #4a5568;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    position: relative;
    border-left: 3px solid transparent;
    line-height: 22px;
    height: auto;
}

.docs-sidebar .sidebar-nav a i {
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    background: #dee8f9;
    color: #6b7c93;
    border-radius: 6px;
    margin-right: 12px;
    flex-shrink: 0;
    -ms-flex-negative: 0;
    transition: all 0.2s ease;
    font-size: 16px !important;
    font-weight: 600 !important;
    vertical-align: middle;
    position: static;
    top: auto;
}

.docs-sidebar .sidebar-nav a:hover {
    background: #f5f9ff;
    color: #1e9fff;
    text-decoration: none;
}

.docs-sidebar .sidebar-nav a:hover i {
    background: #e3f0ff;
    color: #1e9fff;
}

.docs-sidebar .sidebar-nav a.active {
    background: linear-gradient(90deg, rgba(30, 159, 255, 0.10) 0%, rgba(30, 159, 255, 0.04) 100%);
    background: -ms-linear-gradient(90deg, #e3f0ff 0%, #f5f9ff 100%);
    color: #1e9fff;
    border-left-color: #1e9fff;
    font-weight: 500;
}

.docs-sidebar .sidebar-nav a.active i {
    background: #1e9fff;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(30, 159, 255, 0.35);
}

/* ===== 用户中心风格的 Hero 区域 ===== */
.docs-hero-new {
    background: linear-gradient(135deg, #fbfdff 0%, #e8f5ff 55%, #e5e5e5 100%);
    background: -ms-linear-gradient(120deg, #ffffff 0%, #f7fbff 100%);
    border-radius: 12px;
    padding: 13px 22px;
    margin-bottom: 10px;
    box-shadow: 0 4px 16px rgba(31, 56, 100, 0.05);
    border: 1px solid #eef2f7;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
    flex-wrap: wrap;
}

.docs-hero-left {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    min-width: 0;
}

.docs-hero-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #76848f 0%, #81a2cf 100%);
    background: -ms-linear-gradient(135deg, #1e9fff 0%, #2c7be5 100%);
    color: #ffffff;
    line-height: 48px;
    text-align: center;
    margin-right: 14px;
    box-shadow: 0 4px 12px rgb(34 47 57 / 30%);
    flex-shrink: 0;
    -ms-flex-negative: 0;
}

.docs-hero-icon .layui-icon {
    font-size: 22px !important;
}

.docs-hero-text h1 {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font-size: 18px;
    color: #4a5568;
    font-weight: 600;
    line-height: 24px;
}

.docs-hero-text p {
    margin: 4px 0 0;
    color: #718096;
    font-size: 12px;
}

.docs-hero-right {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    color: #718096;
    font-size: 12px;
    margin-top: 6px;
}

.docs-hero-new .docs-hero-right {
    width: 100%;
    -ms-flex-pack: start;
    justify-content: center;
    margin-top: 10px;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .docs-sidebar {
        margin-bottom: 20px;
    }

    .docs-sidebar .sidebar-nav {
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px;
    }

    .docs-sidebar .sidebar-nav li {
        margin: 0;
    }

    .docs-sidebar .sidebar-nav a {
        padding: 10px 16px;
        border-left: none;
    }
}

@media (max-width: 768px) {
    .docs-download-grid {
        grid-template-columns: 1fr 1fr;
    }

    .docs-dev-links {
        grid-template-columns: 1fr;
    }

    .docs-hero-new {
        padding: 15px 18px;
    }

    .docs-hero-icon {
        width: 40px;
        height: 40px;
        line-height: 40px;
    }

    .docs-hero-icon .layui-icon {
        font-size: 18px !important;
    }

    .docs-hero-text h1 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .docs-download-grid {
        grid-template-columns: 1fr;
    }

    .uc-content {
        padding: 10px;
    }

    .section-title {
        font-size: 16px;
        font-weight: 600;
    }

    .hero-btns {
        gap: 5px;
    }

    .hero-btn-start,
    .hero-btn-docs,
    .hero-btn-github {
        font-size: 12px;
        padding: 0 8px;
    }

    .section-desc {
        font-size: 12px;
    }
}