/* 网盘弹窗样式 */

/* 去除 button 标签的默认黑边 */
button.download-button {
    border: none;
    outline: none;
}

/* 弹窗遮罩层 */
.netdisk-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    animation: fadeIn 0.3s ease;
}
.netdisk-modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 弹窗主体（按 rbsou 样式） */
.netdisk-modal {
    position: relative;
    background: white;
    border-radius: 18px;  /* rbsou: 18px */
    padding: 24px;
    width: 450px;         /* rbsou: 450px */
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

/* 关闭按钮 */
.netdisk-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #666;
    transition: all 0.3s ease;
}
.netdisk-modal-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

/* 二维码区域（按 rbsou 样式） */
.netdisk-qrcode-section {
    text-align: center;
    min-height: 100px;
}
.netdisk-qrcode-section .title {
    font-size: 20px;     /* rbsou: 20px */
    font-weight: bold;
    text-align: center;
    color: #000;         /* rbsou: #000 */
}
.netdisk-qrcode-section .title span {
    color: #667eea;      /* 主题色 */
}
.netdisk-qrcode-section .tips {
    margin-top: 12px;    /* rbsou: 12px */
    color: #666;         /* rbsou: #666 */
    font-size: 14px;     /* rbsou: 14px */
    text-align: center;
}

/* 二维码容器（按 rbsou 样式） */
.netdisk-qrcode-section .qrcode {
    margin: 24px auto 0; /* rbsou: 24px auto 0 */
    width: 200px;        /* rbsou: 200px */
    height: 200px;       /* rbsou: 200px */
    border: 1.5px solid #e5e6e8;  /* rbsou: 1.5px solid #e5e6e8 */
    border-radius: 4px;  /* rbsou: 4px */
}
.netdisk-qrcode-section .qrcode canvas {
    width: 100%;         /* rbsou: 100% */
    height: 100%;        /* rbsou: 100% */
    padding: 10px;       /* rbsou: 10px */
}

/* 信息区域（按 rbsou 样式） */
.netdisk-info-section {
    margin-top: 15px;    /* rbsou: 15px */
    font-size: 15px;     /* rbsou: 15px */
}
.netdisk-info-item {
    color: #333;         /* rbsou: #333 */
    text-align: center;  /* rbsou: center */
    margin-top: 5px;     /* rbsou: 5px */
}
.netdisk-info-item .label {
    display: inline;     /* 和内容在同一行 */
    font-weight: 600;    /* rbsou: 600 */
    color: #333;
}
.netdisk-info-item .value {
    display: inline;     /* 和标签在同一行 */
    color: #333;
    word-break: break-all;
}
.netdisk-info-item .value a {
    color: #667eea;      /* 主题色 */
}

/* 声明区域（按 rbsou 样式） */
.netdisk-statement {
    margin-top: 24px;    /* rbsou: 24px */
    padding-top: 15px;   /* rbsou: 15px */
    text-align: left;    /* rbsou: left */
    font-size: 14px;     /* rbsou: 14px */
    border-top: 1px dashed #e6e6e6;  /* rbsou: 1px dashed #e6e6e6 */
}
.netdisk-statement .content {
    margin-bottom: 8px;  /* rbsou: 8px */
    color: #666;         /* rbsou: #666 */
    line-height: 1.6;    /* rbsou: 1.6 */
}
.netdisk-statement .content p {
    text-align: justify; /* rbsou: justify */
    margin-top: 5px;     /* rbsou: 5px */
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .netdisk-modal {
        width: 95%;
        padding: 20px;
    }
    .netdisk-qrcode-section {
        display: none !important;
    }
}
