.quark-download-container {
    text-align: left;
    color: #4b5563;
}

.quark-download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
}

.quark-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    min-height: 46px;
    padding: 9px 20px;
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 15px !important;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
    outline: none;
    text-align: center;
    box-sizing: border-box;
    line-height: 1.35 !important;
}

.quark-download-button span {
    font-size: inherit !important;
    line-height: inherit !important;
}

.quark-download-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.22);
    color: #fff !important;
}

.quark-download-button,
.quark-download-button:visited,
.quark-download-button:focus,
.quark-download-button:active,
.quark-download-button span,
.quark-download-button i {
    color: #fff !important;
    text-decoration: none !important;
}

.quark-local-download-button:hover,
.quark-local-download-button:focus {
    color: #fff !important;
    filter: brightness(.94);
    box-shadow: 0 5px 14px rgba(22, 163, 74, .22);
}

.quark-download-button:focus-visible,
.quark-invalid-link-toggle:focus-visible,
.quark-invalid-link-option:focus-visible {
    outline: 3px solid #111827;
    outline-offset: 3px;
}

.quark-download-button:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.quark-size-small {
    min-height: 40px;
    padding: 7px 16px;
    font-size: 13px !important;
}

.quark-size-medium {
    min-height: 46px;
    padding: 9px 20px;
    font-size: 15px !important;
}

.quark-size-large {
    min-height: 54px;
    padding: 11px 24px;
    font-size: 17px !important;
}

.quark-style-flat {
    border-radius: 4px;
}

.quark-style-rounded {
    border-radius: 25px;
}

.quark-style-outline {
    background-color: transparent !important;
    border: 2px solid;
    color: inherit;
}

.quark-style-outline:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.quark-download-button i {
    margin-right: 7px;
    font-size: 14px;
}

.quark-size-small i {
    font-size: 14px;
}

.quark-size-large i {
    font-size: 18px;
}

@media (max-width: 768px) {
    .quark-download-heading {
        gap: 10px;
    }

    .quark-invalid-link-toggle {
        font-size: 12px !important;
        white-space: nowrap;
    }

    .quark-download-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .quark-download-button {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }

    .quark-resource-meta {
        gap: 8px;
    }

    .quark-resource-meta-item {
        min-height: 34px;
        padding: 6px 5px;
        font-size: 14px;
        overflow: hidden;
    }

    .quark-warm-tip {
        font-size: 14px;
    }
}

.quark-download-title {
    font-size: 18px !important;
    font-weight: 700;
    margin: 0;
    color: #111827;
    text-align: left;
}

.quark-download-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 3px;
}

.quark-download-heading-no-title {
    justify-content: flex-end;
}

.quark-download-divider {
    height: 2px;
    background: #168bf2;
    margin-bottom: 19px;
}

.quark-resource-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 10px;
    align-items: center;
}

.quark-resource-meta-item {
    display: inline-flex;
    align-items: center;
    min-height: 0px;
    padding: 5px 8px;
    border-radius: 10px;
    color: #555f6c;
    font-size: 13px !important;
    line-height: 1.35;
    box-sizing: border-box;
}

.quark-recommended-album {
    display: inline-flex;
    align-items: center;
    min-height: 0px;
    padding: 5px 8px;
    border-radius: 10px;
    background: #eaf4ff;
    color: #087bef;
    font-size: 13px !important;
    line-height: 1.35;
    box-sizing: border-box;
}

.quark-resource-meta-item strong {
    font-weight: 400;
}

.quark-resource-meta-item,
.quark-resource-meta-item strong,
.quark-resource-meta-item span {
    line-height: 1.35 !important;
}

.quark-category-link {
    color: inherit;
    font-size: inherit !important;
    line-height: inherit !important;
    text-decoration: none;
}

.quark-category-link:hover {
    color: #005fc1;
    text-decoration: underline;
}

.quark-warm-tip {
    margin-top: 16px;
    color: #555f6c;
    font-size: 14px !important;
    line-height: 1.7;
}

.quark-warm-tip strong {
    font-weight: 400;
    font-size: inherit !important;
}

.quark-invalid-link-toggle {
    flex: 0 0 auto;
    padding: 3px 0;
    border: 0;
    background: transparent !important;
    color: #7b8794;
    font-size: 13px !important;
    font-weight: 400;
    line-height: 1.4 !important;
    text-decoration: none;
    cursor: pointer;
}

.quark-invalid-link-toggle:hover {
    color: #087bef;
}

.quark-invalid-link-panel {
    margin: -8px 0 14px;
    padding: 12px 14px;
    border: 1px solid #dbe9f8;
    border-radius: 6px;
    background: #f8fbff;
    font-size: 14px !important;
}

.quark-invalid-link-panel[hidden] {
    display: none !important;
}

.quark-invalid-link-label {
    color: #555f6c;
}

.quark-invalid-link-options {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: 8px;
}

.quark-invalid-link-option {
    padding: 5px 10px;
    border: 1px solid #9bc9f5;
    border-radius: 5px;
    background: #fff;
    color: #087bef;
    font-size: 13px !important;
    line-height: 1.4 !important;
    cursor: pointer;
}

.quark-invalid-link-option:hover {
    background: #eaf4ff;
}

.quark-invalid-link-option:disabled {
    cursor: default;
    opacity: 0.65;
}

.quark-invalid-link-result {
    display: block;
    margin-top: 8px;
    min-height: 20px;
    color: #667085;
}

.quark-report-success {
    color: #16803c;
}

.quark-report-error {
    color: #c62828;
}

.quark-recommended-albums {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 10px;
    align-items: center;
}

.quark-recommended-label {
    color: #555f6c;
    font-size: 14px !important;
    line-height: 1.7 !important;
}

.quark-recommended-album {
    min-height: 29px;
    padding: 4px 9px;
    font-size: 13px !important;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

a.quark-recommended-album:hover {
    background: #d7ebff;
    color: #006bd6;
}

.quark-error {
    color: #d32f2f;
    padding: 10px;
    background-color: #ffebee;
    border-radius: 4px;
    border-left: 4px solid #d32f2f;
}

/* 电脑端拦截弹窗 */
.quark-legacy-prompt-removed {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    display: none;
}

.quark-legacy-prompt-visible-removed {
    display: flex !important;
}

.quark-legacy-prompt-box-removed {
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: quarkPromptIn 0.3s ease;
}

@keyframes quarkPromptIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.quark-legacy-prompt-close-removed {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.quark-legacy-prompt-close-hover-removed {
    color: #333;
}

.quark-legacy-qrcode-removed {
    margin: 0 auto 20px;
    width: 200px;
    height: 200px;
    background: #fff;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.quark-legacy-qrcode-img-removed {
    display: block;
    width: 100%;
    height: 100%;
}

.quark-legacy-qrcode-canvas-removed {
    display: block;
    width: 180px;
    height: 180px;
    margin: 0 auto;
}

.quark-legacy-qr-fallback-removed {
    display: block;
    padding: 64px 12px;
    color: #4b5563;
    text-align: center;
    font-size: 14px;
}

.quark-legacy-prompt-message-removed {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

.quark-limit-dialog[hidden] {
    display: none !important;
}

.quark-limit-dialog {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.quark-limit-dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(19, 25, 36, 0.58);
    backdrop-filter: blur(2px);
}

.quark-limit-dialog-box {
    position: relative;
    width: min(400px, 100%);
    padding: 28px 24px 24px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
    text-align: center;
}

.quark-limit-dialog-box h3 {
    margin: 0 0 10px;
    color: #202124;
    font-size: 20px !important;
    line-height: 1.4 !important;
}

.quark-limit-dialog-box p {
    margin: 0 0 20px;
    color: #5f6368;
    font-size: 14px !important;
    line-height: 1.7 !important;
}

.quark-limit-dialog-box {
    width: min(460px, calc(100vw - 32px));
    min-height: 0;
    padding: 34px 32px 30px;
    border: 1px solid #eef1f5;
    border-radius: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 22px 16px;
    text-align: center;
}

.quark-limit-dialog-content h3 {
    margin: 0 0 7px;
    color: var(--theme-color, #1677ff);
    font-size: 19px !important;
    font-weight: 600;
    white-space: normal;
}

.quark-limit-dialog-content p {
    margin: 0;
    color: #707988;
    font-size: 13px !important;
    line-height: 1.55 !important;
}

.quark-limit-dialog-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #a1a8b2;
    font-size: 23px;
    line-height: 34px;
    cursor: pointer;
}

.quark-limit-sponsor {
    grid-column: 1 / -1;
    min-height: 42px;
    padding: 10px 20px;
    border: 0;
    border-radius: 6px;
    background: var(--theme-color, #1677ff);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 22px;
    cursor: pointer;
}

.quark-limit-sponsor:hover,
.quark-limit-sponsor:focus {
    background: var(--theme-hover, #1162e8);
    color: #fff;
}

@media (max-width: 600px) {
    .quark-limit-dialog-box {
        padding: 32px 22px 24px;
        grid-template-columns: minmax(0, 1fr);
        gap: 18px 12px;
    }

    .quark-limit-dialog-content h3 {
        font-size: 17px !important;
    }
}

.quark-member-download-records {
    overflow-x: auto;
}

.quark-member-download-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.quark-member-download-table th,
.quark-member-download-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #edf0f2;
    text-align: left;
    font-size: 13px;
    line-height: 1.5;
}

.quark-member-download-table th {
    color: #667085;
    font-weight: 600;
    background: #f8fafc;
}

.quark-member-download-table a {
    color: #1677ff;
}
