/* DSI Reporting Page Styles */
.dsi-page {
    padding: 40px 20px 80px;
    color: #333;
}
.dsi-header {
    padding-bottom: 40px;
    border-bottom: 6px solid #cdcecf;
    margin-bottom: 40px;
}
.dsi-logo img {
    width: 180px;
}
.dsi-body h1 {
    font-size: 30px;
    color: #02317d;
    margin-bottom: 30px;
}
.dsi-body h2 {
    font-size: 22px;
    color: #02317d;
    margin-bottom: 16px;
    margin-top: 30px;
    font-weight: 600;
}
.dsi-body p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
    color: #444;
}
.dsi-body a {
    color: #02317d;
    text-decoration: underline;
}
.dsi-body a:hover {
    color: #0056b3;
}
.dsi-thanks {
    font-weight: 600;
    color: #02317d;
    margin-top: 24px;
}

/* Privacy Modal Overlay */
.dsi-privacy-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.dsi-privacy-overlay.hidden {
    display: none;
}
.dsi-privacy-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 1200px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}
/* iPad 适配：与全局 .content 宽度保持一致 */
@media screen and (min-width: 768px) and (max-width: 1250px) {
    .dsi-privacy-modal {
        max-width: 1100px;
    }
}
@media screen and (min-width: 768px) and (max-width: 1100px) {
    .dsi-privacy-modal {
        max-width: 1000px;
    }
}
.dsi-privacy-header {
    padding: 20px 28px;
    border-bottom: 1px solid #e5e5e5;
    flex-shrink: 0;
}
.dsi-privacy-header h2 {
    font-size: 20px;
    color: #02317d;
    margin: 0;
    font-weight: 600;
}
.dsi-privacy-body {
    padding: 24px 28px;
    overflow-y: auto;
    flex: 1;
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    min-height: 300px;
}
.dsi-privacy-body h2,
.dsi-privacy-body h3 {
    color: #333;
    margin: 16px 0 8px;
    font-size: 17px;
}
.dsi-privacy-body p {
    margin-bottom: 12px;
}
.dsi-privacy-body a {
    color: #02317d;
}
.dsi-privacy-footer {
    padding: 16px 28px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background: #f9f9f9;
}
.dsi-privacy-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: #555;
    user-select: none;
}
.dsi-privacy-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #02317d;
}
.dsi-privacy-checkbox input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
.dsi-privacy-checkbox input[type="checkbox"]:disabled + span {
    opacity: 0.5;
    cursor: not-allowed;
}
.dsi-privacy-close {
    background: #02317d;
    color: #fff;
    border: none;
    padding: 10px 28px;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.dsi-privacy-close:disabled {
    background: #b0b0b0;
    cursor: not-allowed;
    opacity: 0.7;
}
.dsi-privacy-close:not(:disabled):hover {
    opacity: 0.85;
}

/* Scroll hint indicator */
.dsi-privacy-body::-webkit-scrollbar {
    width: 6px;
}
.dsi-privacy-body::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}
.dsi-privacy-body::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 3px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .dsi-privacy-modal {
        max-height: 90vh;
        border-radius: 8px;
    }
    .dsi-privacy-header {
        padding: 16px 20px;
    }
    .dsi-privacy-body {
        padding: 16px 20px;
        min-height: 200px;
    }
    .dsi-privacy-footer {
        padding: 14px 20px;
        flex-direction: column;
        gap: 12px;
    }
    .dsi-privacy-close {
        width: 100%;
    }
    .dsi-body h1 {
        font-size: 24px;
    }
    .dsi-body h2 {
        font-size: 18px;
    }
    .dsi-body p {
        font-size: 15px;
    }
}
