/* 移动端文档页面优化样式 */

/* 在线文档、产品方案页面 */
@media (max-width: 768px) {
    /* 文档列表区域 */
    .docs-section {
        margin-bottom: 1.5rem;
    }

    .docs-section__title {
        font-size: 1rem;
        padding: 0.5rem 0;
        border-bottom: 2px solid #367ff7;
        margin-bottom: 0.75rem;
    }

    .docs-section__title i {
        font-size: 0.9rem;
    }

    .docs-section__list {
        padding-left: 0;
        list-style: none;
    }

    .docs-section__list li {
        padding: 0.5rem 0;
        border-bottom: 1px solid #e9ecef;
        word-break: break-word;
    }

    .docs-section__list li i {
        font-size: 0.8rem;
        margin-right: 0.25rem;
    }

    .docs-section__list .doc-link {
        font-size: 0.9rem;
        line-height: 1.5;
        display: inline-block;
        width: calc(100% - 20px);
    }

    .docs-section__list .doc-link small {
        display: block;
        margin-top: 0.25rem;
        font-size: 0.75rem;
    }

    /* 内容包装器 */
    .content-wrapper {
        padding: 1rem !important;
    }

    .content-header h5 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 3px solid #367ff7;
    }

    .content {
        padding: 0.75rem 0 !important;
    }
}

/* 下载页面移动端优化 */
@media (max-width: 768px) {
    .download-card {
        margin-bottom: 1.5rem !important;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .download-card .card-body {
        padding: 1.25rem;
    }

    /* 强制垂直布局 */
    .download-card .row {
        display: flex;
        flex-direction: column;
        margin: 0;
    }

    .download-card .col-md-8,
    .download-card .col-md-4 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding: 0;
    }

    /* 版本标题区域 */
    .download-title {
        font-size: 1.15rem;
        font-weight: 600;
        margin-bottom: 1rem !important;
        padding-bottom: 0.75rem;
        border-bottom: 2px solid #e9ecef;
        line-height: 1.8;
    }

    .download-title .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        margin-left: 0.35rem;
        margin-bottom: 0.25rem;
        display: inline-block;
        vertical-align: middle;
    }

    /* 下载信息区域 */
    .download-info {
        margin-bottom: 1rem;
    }

    .download-info p {
        font-size: 0.9rem;
        margin-bottom: 0.75rem !important;
        line-height: 1.6;
        display: flex;
        align-items: flex-start;
    }

    .download-info p i {
        margin-right: 0.5rem;
        margin-top: 0.2rem;
        flex-shrink: 0;
    }

    .download-info strong {
        font-weight: 600;
        margin-right: 0.35rem;
        white-space: nowrap;
    }

    /* MD5显示优化 */
    .download-info .small {
        font-size: 0.8rem !important;
    }

    .download-info code {
        font-size: 0.7rem;
        word-break: break-all;
        background: #f8f9fa;
        padding: 0.15rem 0.35rem;
        border-radius: 3px;
        display: inline-block;
        max-width: 100%;
        line-height: 1.4;
    }

    /* 下载按钮区域 */
    .download-card .col-md-4 {
        text-align: center !important;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 2px solid #e9ecef;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .download-card .btn-lg {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1.05rem;
        font-weight: 600;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(54, 127, 247, 0.3);
    }

    .download-card .btn-lg i {
        margin-right: 0.5rem;
    }

    /* 使用说明 */
    .usage-notes {
        margin-top: 2.5rem !important;
        padding: 1.25rem;
        background: #f8f9fa;
        border-radius: 8px;
    }

    .usage-notes h6 {
        font-size: 1.05rem;
        font-weight: 600;
        margin-bottom: 1rem !important;
        color: #333;
    }

    .usage-notes h6 i {
        margin-right: 0.5rem;
    }

    .usage-list {
        padding-left: 1.5rem;
        font-size: 0.9rem;
        line-height: 1.8;
        margin-bottom: 0;
    }

    .usage-list li {
        margin-bottom: 1rem;
        word-break: break-word;
    }

    .usage-list li:last-child {
        margin-bottom: 0;
    }

    .usage-list a {
        text-decoration: none;
        font-weight: 500;
    }
}

/* 小屏幕优化 (iPhone SE 等) */
@media (max-width: 375px) {
    .content-wrapper {
        padding: 0.75rem !important;
    }

    .content-header h5 {
        font-size: 1.1rem;
    }

    .docs-section__title {
        font-size: 0.95rem;
    }

    .docs-section__list .doc-link {
        font-size: 0.85rem;
    }

    .download-card .card-body {
        padding: 1rem;
    }

    .download-title {
        font-size: 1.05rem;
    }

    .download-title .badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }

    .download-info p {
        font-size: 0.85rem;
    }

    .download-info code {
        font-size: 0.65rem;
    }

    .download-card .btn-lg {
        padding: 0.85rem 1.25rem;
        font-size: 0.95rem;
    }

    .usage-notes {
        padding: 1rem;
    }

    .usage-list {
        font-size: 0.85rem;
    }
}

