.download-captcha-modal {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.48);
}

.download-captcha-modal.is-open {
    display: flex;
}

.download-captcha-modal.is-inline {
    position: static;
    inset: auto;
    display: block;
    padding: 0;
    background: transparent;
}

.download-captcha-modal.is-inline .download-captcha-dialog {
    max-width: none;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    box-shadow: none;
    background: #f8fbff;
}

.download-captcha-modal.is-inline .download-captcha-header {
    background: transparent;
    border-bottom-color: #e0e7ff;
    padding: 1rem 1.25rem 0.65rem;
}

.download-captcha-modal.is-inline .download-captcha-header h2 {
    font-size: 1rem;
}

.download-captcha-modal.is-inline .download-captcha-hint,
.download-captcha-modal.is-inline .download-captcha-status,
.download-captcha-modal.is-inline .download-captcha-error {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
}

.download-captcha-modal.is-inline .download-captcha-row {
    padding: 0 1.25rem;
}

.download-captcha-modal.is-inline .download-captcha-actions {
    justify-content: flex-start;
    padding: 1rem 1.25rem 1.2rem;
}

.download-captcha-modal.is-inline .download-captcha-submit {
    min-width: 148px;
    padding: 0.7rem 1.35rem;
}

.download-landing-page {
    background: #f8f9fa;
}

.download-landing-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #e0e7ff;
    font-size: 0.86rem;
    letter-spacing: 0.04em;
}

.download-landing-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-bottom: 0.65rem;
}

.download-landing {
    max-width: 860px;
}

.download-landing-card {
    max-width: none;
}

.download-landing-back {
    display: inline-flex;
    margin-bottom: 1.5rem;
}

.download-landing-file {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.4rem;
}

.download-landing-file-mark {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 1.35rem;
}

.download-landing-file-kind {
    margin-bottom: 0.2rem;
    color: #1d4ed8;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.download-landing-file-copy h2 {
    margin: 0;
    color: #1e3a8a;
    font-size: 1.35rem;
    font-weight: 700;
}

.download-landing-filename {
    margin: 0.35rem 0 0;
    color: #6b7280;
    font-size: 0.92rem;
    word-break: break-all;
}

.download-landing-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem 1rem;
    margin: 0 0 1.5rem;
    padding: 1rem 1.1rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
}

.download-landing-specs div {
    min-width: 0;
}

.download-landing-specs dt {
    margin-bottom: 0.2rem;
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 600;
}

.download-landing-specs dd {
    margin: 0;
    color: #111827;
    font-size: 0.98rem;
    font-weight: 600;
    word-break: break-all;
}

.download-captcha-dialog {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.download-captcha-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.download-captcha-header h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e3a8a;
}

.download-captcha-close {
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.15rem;
}

.download-captcha-hint,
.download-captcha-status {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0.9rem 1.1rem 0.75rem;
}

.download-captcha-status.is-error,
.download-captcha-error {
    color: #b91c1c;
    font-size: 0.9rem;
    margin: 0 1.1rem 0.75rem;
}

.download-captcha-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    padding: 0 1.1rem;
}

.download-captcha-input {
    width: 8.5rem;
    height: 48px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0 0.75rem;
    font-size: 1.05rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.download-captcha-image-wrap {
    position: relative;
    min-width: 176px;
    min-height: 56px;
}

.download-captcha-image-wrap img {
    display: block;
    height: 56px;
    width: 176px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
}

.download-captcha-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 176px;
    height: 56px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    font-size: 0.8rem;
    background: #fff;
}

.download-captcha-refresh {
    border: none;
    background: none;
    color: #1d4ed8;
    cursor: pointer;
    padding: 0.25rem 0;
}

.download-captcha-refresh:hover {
    text-decoration: underline;
}

.download-captcha-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    padding: 1rem 1.1rem 1.1rem;
}

.download-captcha-cancel,
.download-captcha-submit {
    border-radius: 8px;
    padding: 0.55rem 1rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.download-captcha-cancel {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
}

.download-captcha-submit {
    border: none;
    background: #1d4ed8;
    color: #fff;
}

.download-captcha-submit:hover {
    background: #1e40af;
}

.download-landing-page .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f3f4f6;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
}

.download-landing-page .back-btn:hover {
    background: #e5e7eb;
    color: #1e40af;
}

.download-fail-page {
    font-family: "Microsoft YaHei", sans-serif;
    background: #f8f9fa;
    margin: 0;
    min-height: 100vh;
}

@media (max-width: 576px) {
    .download-captcha-input,
    .download-captcha-image-wrap,
    .download-captcha-image-wrap img,
    .download-captcha-placeholder {
        width: 100%;
    }
}
