/* 下载资料面板 — 与官网主色 #009999 一致 */
.dl-panel {
    max-width: 1100px;
    margin: 48px auto 24px;
    padding: 0 24px;
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
}

.dl-panel-inner {
    background: #f7fafb;
    border: 1px solid #d9e5e7;
    border-radius: 8px;
    padding: 28px 32px 32px;
}

.dl-panel-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.dl-panel-title {
    margin: 0;
    font-size: 22px;
    font-weight: bold;
    color: #222;
    line-height: 1.3;
}

.dl-panel-badge {
    display: inline-block;
    background: #009999;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.dl-panel-desc {
    margin: 8px 0 20px;
    color: #555;
    font-size: 14px;
    line-height: 1.75;
}

.dl-panel-desc strong {
    color: #009999;
}

.dl-auth-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.dl-auth-user {
    color: #333;
    font-size: 14px;
}

.dl-auth-user em {
    font-style: normal;
    color: #009999;
    font-weight: bold;
}

.dl-warn {
    background: #fff8e8;
    border: 1px solid #f0d9a0;
    color: #8a6d1d;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 12px 0;
    font-size: 13px;
    line-height: 1.7;
}

.dl-warn a {
    color: #009999;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
}

.dl-file-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    border-top: 1px solid #e2ecee;
}

.dl-file-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 4px;
    border-bottom: 1px solid #e2ecee;
}

.dl-file-meta {
    flex: 1 1 220px;
    min-width: 200px;
}

.dl-file-title {
    font-size: 15px;
    font-weight: bold;
    color: #222;
    margin: 0 0 4px;
    word-break: break-all;
}

.dl-file-sub {
    font-size: 12px;
    color: #888;
    margin: 0;
}

.dl-type-tag {
    display: inline-block;
    border: 1px solid #009999;
    color: #009999;
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 3px;
    margin-right: 8px;
    vertical-align: middle;
}

.dl-btn {
    box-sizing: border-box;
    display: inline-block;
    min-width: 112px;
    padding: 0 20px;
    height: 40px;
    line-height: 36px;
    border: 2px solid #009999;
    color: #009999;
    background: #fff;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.15s ease, color 0.15s ease;
}

.dl-btn:hover {
    background: #009999;
    color: #fff;
}

.dl-btn-primary {
    background: #009999;
    color: #fff;
}

.dl-btn-primary:hover {
    background: #008080;
    border-color: #008080;
    color: #fff;
}

.dl-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dl-empty {
    padding: 28px 8px;
    color: #888;
    font-size: 14px;
    text-align: center;
}

.dl-tip {
    margin: 18px 0 0;
    font-size: 12px;
    color: #999;
    line-height: 1.7;
}

/* 型号筛选 */
.dl-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 16px;
}

.dl-chip {
    border: 1px solid #c5d6d8;
    background: #fff;
    color: #444;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 16px;
    cursor: pointer;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dl-chip:hover {
    border-color: #009999;
    color: #009999;
}

.dl-chip.is-active {
    background: #009999;
    border-color: #009999;
    color: #fff;
}

/* 型号分组 */
.dl-group {
    border: 1px solid #e2ecee;
    border-radius: 6px;
    margin: 12px 0;
    background: #fff;
    overflow: hidden;
}

.dl-group-head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: none;
    background: #f3f8f9;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.dl-group-title {
    flex: 1;
    font-size: 15px;
    font-weight: bold;
    color: #222;
}

.dl-group-count {
    font-size: 12px;
    color: #009999;
    flex-shrink: 0;
}

.dl-group-arrow {
    width: 8px;
    height: 8px;
    border-right: 2px solid #009999;
    border-bottom: 2px solid #009999;
    transform: rotate(45deg);
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.dl-group .dl-file-list {
    display: none;
    border-top: none;
    margin: 0;
    padding: 0 16px 8px;
}

.dl-group.is-open .dl-file-list {
    display: block;
}

.dl-group.is-open .dl-group-arrow {
    transform: rotate(-135deg);
}

.dl-group .dl-file-item:last-child {
    border-bottom: none;
}

/* 型号卡片内下载按钮 */
.dl-model-btn-wrap {
    margin-top: 16px;
}

.dl-model-btn {
    display: inline-block;
    min-width: 160px;
    height: 36px;
    padding: 0 18px;
    border: 2px solid #009999;
    background: #fff;
    color: #009999;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 2px;
    line-height: 32px;
}

.dl-model-btn:hover {
    background: #009999;
    color: #fff;
}

.dl-panel-loading {
    padding: 24px 8px;
    color: #888;
    text-align: center;
}

@media screen and (max-aspect-ratio: 1000/1000) {
    .dl-panel {
        margin: 28px auto 16px;
        padding: 0 14px;
        font-size: 13px;
    }

    .dl-panel-inner {
        padding: 20px 16px 24px;
        border-radius: 6px;
    }

    .dl-panel-title {
        font-size: 18px;
    }

    .dl-panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dl-file-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .dl-btn {
        width: 100%;
    }

    .dl-auth-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .dl-auth-bar .dl-btn {
        width: 100%;
    }
}
