.haouo-zibll-download-card {
    background: var(--main-bg-color, #fff);
    border: 1px solid var(--main-border-color, #edf0f2);
    border-radius: 8px;
    padding: 18px;
    margin: 0 0 18px;
}

.haouo-zibll-download-card.zib-widget {
    margin-bottom: 18px;
}

.haouo-zibll-download-main {
    display: block;
}

.haouo-zibll-download-info {
    min-width: 0;
}

.haouo-zibll-download-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--main-color, #2f3f53);
    margin-bottom: 18px;
}

.haouo-zibll-resource-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.haouo-zibll-resource-button {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 6px;
    padding: 0 14px;
    background: #2f3846;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.haouo-zibll-resource-button:hover,
.haouo-zibll-resource-button:focus {
    background: #222b38;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(22, 30, 42, .16);
    outline: none;
}

.haouo-zibll-resource-button i {
    font-size: 19px;
}

.haouo-zibll-resource-note {
    display: none;
}

.haouo-zibll-password-button {
    background: #f97316;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    padding: 0 12px;
    box-shadow: 0 8px 18px rgba(249, 115, 22, .24);
}

.haouo-zibll-password-button:hover,
.haouo-zibll-password-button:focus {
    background: #ea580c;
    color: #fff;
    box-shadow: 0 10px 22px rgba(234, 88, 12, .28);
}

.haouo-zibll-password-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .2);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    flex: 0 0 auto;
}

.haouo-zibll-password-button .haouo-zibll-resource-name {
    min-width: 0;
    word-break: break-all;
}

.haouo-zibll-download-extra {
    margin-top: 20px;
}

.haouo-zibll-extra-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--main-color, #2f3f53);
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--main-border-color, #d9dee6);
    margin-bottom: 10px;
}

.haouo-zibll-download-extra dl {
    margin: 0;
}

.haouo-zibll-download-extra dl > div {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px 0;
}

.haouo-zibll-download-extra dt,
.haouo-zibll-download-extra dd {
    margin: 0;
    color: var(--muted-color, #6b7583);
    font-size: 15px;
    line-height: 1.45;
}

.haouo-zibll-download-extra dd {
    color: #697586;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-wrap: wrap;
}

.haouo-zibll-download-extra code {
    padding: 0;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    word-break: break-all;
}

.haouo-zibll-extra-notice {
    color: var(--muted-color, #6b7583);
    font-size: 14px;
    line-height: 1.6;
    margin-top: 6px;
}

.haouo-zibll-download-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 16px;
}

.haouo-zibll-download-input {
    min-width: 0;
    height: 40px;
    border: 1px solid var(--main-border-color, #d0d5dd);
    border-radius: 6px;
    padding: 0 12px;
    background: var(--main-bg-color, #fff);
    color: var(--main-color, #20242a);
}

.haouo-zibll-download-button,
.haouo-zibll-open-link,
.haouo-zibll-copy-value-button {
    min-height: 40px;
    border: 0;
    border-radius: 6px;
    padding: 0 16px;
    background: var(--focus-color, #246bfe);
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.haouo-zibll-copy-value-button {
    width: 100%;
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

.haouo-zibll-copy-value-button:hover {
    color: #fff;
}

.haouo-zibll-download-button:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.haouo-zibll-points-download-button {
    width: 100%;
    margin-top: 16px;
}

.haouo-zibll-download-msg {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.7;
}

.haouo-zibll-download-msg.error {
    color: #d92d20;
}

.haouo-zibll-download-msg.success {
    color: #039855;
}

.haouo-zibll-download-msg.auth-required {
    padding: 14px 12px 6px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #b42318;
}

.haouo-zibll-auth-link,
.haouo-zibll-balance-link {
    color: #246bfe;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px solid rgba(36, 107, 254, .35);
    transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}

.haouo-zibll-auth-link {
    margin: 0 4px;
}

.haouo-zibll-auth-link:hover,
.haouo-zibll-auth-link:focus,
.haouo-zibll-balance-link:hover,
.haouo-zibll-balance-link:focus {
    color: #d92d20;
    border-bottom-color: currentColor;
}

.haouo-zibll-download-msg.points-confirm {
    padding: 10px 0 0;
    color: var(--main-color, #20242a);
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

.haouo-zibll-download-msg.points-insufficient {
    padding-top: 8px;
    font-size: 15px;
    font-weight: 600;
}

.haouo-zibll-download-result {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
}

.haouo-zibll-download-result .haouo-zibll-open-link {
    width: 100%;
}

.haouo-zibll-download-result .haouo-zibll-open-link,
.haouo-zibll-download-result .haouo-zibll-copy-value-button {
    background: #111827;
    color: #fff;
}

.haouo-zibll-download-result .haouo-zibll-password-result-button {
    background: #f97316;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(249, 115, 22, .22);
}

.haouo-zibll-download-result .haouo-zibll-open-link:hover,
.haouo-zibll-download-result .haouo-zibll-open-link:focus,
.haouo-zibll-download-result .haouo-zibll-copy-value-button:hover,
.haouo-zibll-download-result .haouo-zibll-copy-value-button:focus {
    background: var(--focus-color, #246bfe);
    color: #fff;
}

.haouo-zibll-download-result .haouo-zibll-password-result-button:hover,
.haouo-zibll-download-result .haouo-zibll-password-result-button:focus {
    background: #ea580c;
    color: #fff;
}

.haouo-zibll-download-meta {
    min-height: 32px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: var(--muted-color, #667085);
    font-size: 14px;
    flex-wrap: wrap;
}

.haouo-zibll-copy-button {
    min-height: 28px;
    border: 1px solid var(--main-border-color, #d0d5dd);
    border-radius: 6px;
    padding: 0 10px;
    background: var(--main-bg-color, #fff);
    color: var(--muted-color, #667085);
    cursor: pointer;
    font-size: 13px;
}

.haouo-zibll-copy-button:hover {
    color: var(--focus-color, #246bfe);
    border-color: var(--focus-color, #246bfe);
}

.haouo-zibll-download-qrcode {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--main-border-color, #edf0f2);
    display: block;
    margin: 12px auto 0;
}

.haouo-zibll-download-error {
    border: 1px solid #fecdca;
    border-radius: 8px;
    padding: 12px;
    color: #b42318;
    background: #fffbfa;
}

.haouo-zibll-download-modal[hidden] {
    display: none;
}

.haouo-zibll-download-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.haouo-zibll-download-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, .56);
}

.haouo-zibll-download-dialog {
    position: relative;
    width: min(420px, 100%);
    border-radius: 8px;
    background: var(--main-bg-color, #fff);
    padding: 20px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .28);
}

.haouo-zibll-modal-close {
    position: absolute;
    right: 10px;
    top: 8px;
    border: 0;
    background: transparent;
    color: var(--muted-color, #667085);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.haouo-zibll-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--main-color, #20242a);
    padding-right: 24px;
}

.haouo-zibll-modal-desc,
.haouo-zibll-selected-resource {
    margin-top: 8px;
    color: var(--muted-color, #667085);
    font-size: 14px;
    line-height: 1.6;
}

.haouo-zibll-selected-resource {
    font-weight: 700;
    color: var(--main-color, #20242a);
}

.haouo-zibll-modal-open {
    overflow: hidden;
}

.haouo-migration-video {
    margin: 16px 0;
}

.haouo-migration-video-player {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    border-radius: 8px;
    background: #111827;
}

.haouo-migration-video-player[width],
.haouo-migration-video-player[height] {
    width: 100% !important;
    height: auto !important;
}

.haouo-migration-embed {
    margin: 16px 0;
}

.haouo-migration-iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 260px;
    border: 0;
    border-radius: 8px;
    background: #111827;
}

.haouo-migration-video figcaption,
.haouo-migration-video p {
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--muted-color, #667085);
}

.haouo-migration-video-link {
    color: var(--focus-color, #246bfe);
    text-decoration: none;
}

.haouo-migration-video-error .haouo-migration-video-link::before {
    content: "视频直连加载失败，";
}

.haouo-remote-image {
    background: var(--main-shadow, #f3f4f6);
}

.haouo-remote-image-error {
    min-height: 72px;
    border: 1px dashed var(--main-border-color, #d0d5dd);
}

.wp-posts-content img[referrerpolicy],
.article-content img[referrerpolicy] {
    max-width: 100%;
    height: auto;
}

@media (max-width: 640px) {
    .haouo-zibll-download-card {
        margin: 18px 0;
    }

    .haouo-zibll-download-form {
        grid-template-columns: 1fr;
    }

    .haouo-zibll-resource-button {
        min-height: 48px;
        font-size: 18px;
    }
}
