/* =========================================================
   Liscotech Download Center (Email-Verified Brochure Gate)
   ========================================================= */

.dl-container {
    width: 82%;
    max-width: 1020px;
    margin: 20px auto 80px auto;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans TC", sans-serif;
    color: #333;
}

.dl-container h1,
.dl-container h2,
.dl-container h3 {
    padding: 0;
}

.dl-subtitle {
    text-align: center;
    color: #555;
    font-size: 15px;
    line-height: 1.7;
    max-width: 680px;
    margin: 8px auto 28px auto;
}

/* Verified status banner */
.dl-verified-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: #eef7f1;
    border: 1px solid #b7dfc5;
    color: #1c5b35;
    padding: 12px 18px;
    border-radius: 5px;
    margin-bottom: 24px;
    font-size: 14px;
}

.dl-container .dl-verified-bar a:link,
.dl-container .dl-verified-bar a:visited {
    color: #1f2160;
    text-decoration: underline;
    font-weight: 600;
}

/* Category tabs */
.dl-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.dl-tab-btn {
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #1f2160;
    background: #fff;
    border: 1.5px solid #1f2160;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dl-tab-btn:hover,
.dl-tab-btn.is-selected {
    background: #1f2160;
    color: #fff;
}

/* Brochure cards grid */
.dl-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.dl-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #f8f9fb;
    border: 1px solid #e2e6ee;
    border-radius: 6px;
    padding: 18px 20px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dl-card:hover {
    border-color: #1f2160;
    box-shadow: 0 4px 14px rgba(31, 33, 96, 0.08);
}

.dl-card.is-hidden {
    display: none;
}

.dl-card-info {
    min-width: 0;
    flex: 1;
}

.dl-cat-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #3b82a6;
    background: #e9f3f8;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 6px;
}

.dl-card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1f2160;
    line-height: 1.4;
    word-break: break-word;
    text-align: left;
}

.dl-action-btn,
.dl-container .dl-action-btn:link,
.dl-container .dl-action-btn:visited {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 9px 16px;
    background: #1f2160;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.dl-action-btn:hover {
    background: #2f3387;
    color: #fff;
}

/* Modal */
.dl-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.dl-modal-backdrop.is-open {
    display: flex;
}

.dl-modal {
    background: #fff;
    width: 100%;
    max-width: 460px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    animation: dlFadeIn 0.18s ease-out;
}

@keyframes dlFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dl-modal-header {
    background: #1f2160;
    color: #fff;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dl-modal-header h3 {
    margin: 0;
    padding: 0;
    font-size: 18px;
    color: #fff;
    text-align: left;
}

.dl-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.dl-modal-body {
    padding: 22px;
}

.dl-selected-box {
    background: #f5f7fb;
    border-left: 3.5px solid #1f2160;
    padding: 10px 14px;
    margin-bottom: 18px;
    font-size: 13.5px;
    color: #333;
    word-break: break-word;
}

.dl-modal-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.dl-field {
    margin-bottom: 14px;
}

.dl-field label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
}

.dl-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 14.5px;
    box-sizing: border-box;
    outline: none;
}

.dl-field input:focus {
    border-color: #1f2160;
    box-shadow: 0 0 0 2px rgba(31, 33, 96, 0.14);
}

.dl-hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.dl-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.dl-btn-primary,
.dl-verify-wrapper .dl-btn-primary:link,
.dl-verify-wrapper .dl-btn-primary:visited {
    display: inline-block;
    flex: 1;
    padding: 11px 20px;
    background: #1f2160;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14.5px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.dl-btn-primary:hover {
    background: #2f3387;
    color: #fff;
}

.dl-btn-primary:disabled {
    opacity: 0.65;
    cursor: wait;
}

.dl-btn-secondary,
.dl-verify-wrapper .dl-btn-secondary:link,
.dl-verify-wrapper .dl-btn-secondary:visited {
    display: inline-block;
    padding: 11px 18px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.dl-btn-secondary:hover {
    background: #e2e8f0;
}

.dl-feedback {
    display: none;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 13.5px;
    line-height: 1.6;
}

.dl-feedback.is-success {
    display: block;
    background: #eef7f1;
    border: 1px solid #b7dfc5;
    color: #1c5b35;
}

.dl-feedback.is-error {
    display: block;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Verification landing page */
.dl-verify-wrapper {
    width: 90%;
    max-width: 600px;
    margin: 60px auto 100px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans TC", sans-serif;
}

.dl-verify-card {
    background: #fff;
    border: 1px solid #e2e6ee;
    border-radius: 8px;
    padding: 36px 32px;
    text-align: center;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.dl-verify-card h2 {
    margin: 12px 0 12px 0;
    padding: 0;
    color: #1f2160;
    font-size: 24px;
}

.dl-verify-card p {
    color: #444;
    line-height: 1.7;
    font-size: 15px;
    margin: 0 0 14px 0;
}

.dl-verify-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    line-height: 56px;
    margin: 0 auto 8px auto;
}

.dl-icon-err {
    background: #dc2626;
}

.dl-verify-filebox {
    background: #f5f7fb;
    border: 1px solid #e2e6ee;
    border-radius: 6px;
    padding: 14px 16px;
    margin: 18px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    word-break: break-word;
}

.dl-verify-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 22px 0 14px 0;
}

.dl-verify-hint {
    font-size: 14px;
    color: #555;
}

.dl-verify-note {
    font-size: 13px;
    color: #777;
    margin-top: 12px;
}

@media screen and (max-width: 820px) {
    .dl-container {
        width: 92%;
    }

    .dl-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 520px) {
    .dl-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .dl-action-btn {
        width: 100%;
        justify-content: center;
    }
}
