/* ===== modal.css - 精简版弹窗样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 遮罩层 */
.tuyue-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.tuyue-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 弹窗卡片 - 极简风格 */
.tuyue-modal-card {
    background: #fff;
    max-width: 420px;
    width: 100%;
    border-radius: 16px;
    padding: 28px 28px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.92) translateY(12px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
    opacity: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.tuyue-modal-overlay.active .tuyue-modal-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* 标题 */
.tuyue-modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.tuyue-modal-header .icon {
    font-size: 24px;
}

.tuyue-modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.tuyue-modal-header .tag {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    color: #6b7a8a;
    background: #f0f2f5;
    padding: 2px 12px;
    border-radius: 20px;
}

/* 正文 - 紧凑 */
.tuyue-modal-body {
    font-size: 14px;
    line-height: 1.7;
    color: #2d3748;
}

.tuyue-modal-body .url {
    display: inline-block;
    font-size: 17px;
    font-weight: 600;
    color: #4a6cf7;
    text-decoration: none;
    padding: 4px 14px;
    background: #f0f4ff;
    border-radius: 8px;
    margin-bottom: 12px;
}

.tuyue-modal-body .url:hover {
    background: #e4ebff;
}

.tuyue-modal-body .item {
    display: flex;
    padding: 4px 0;
    border-bottom: 1px solid #f2f5fa;
}

.tuyue-modal-body .item:last-child {
    border-bottom: none;
}

.tuyue-modal-body .item .label {
    min-width: 56px;
    color: #8a9bb0;
    flex-shrink: 0;
}

.tuyue-modal-body .item .value {
    color: #1a1a2e;
}

.tuyue-modal-body .item .value.danger {
    color: #dc2626;
    font-weight: 600;
}

.tuyue-modal-body .item .value a {
    color: #4a6cf7;
    text-decoration: none;
}

.tuyue-modal-body .item .value a:hover {
    text-decoration: underline;
}

.tuyue-modal-body .notice {
    margin-top: 12px;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 13px;
    color: #4a5568;
    border-left: 3px solid #f59e0b;
}

.tuyue-modal-body .notice strong {
    color: #b45309;
}

/* 底部按钮 */
.tuyue-modal-footer {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #edf2f7;
    justify-content: flex-end;
}

.tuyue-modal-footer .btn {
    padding: 8px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.tuyue-modal-footer .btn-secondary {
    background: #f1f3f5;
    color: #4a5568;
}

.tuyue-modal-footer .btn-secondary:hover {
    background: #e5e8ec;
}

.tuyue-modal-footer .btn-primary {
    background: #4a6cf7;
    color: #fff;
}

.tuyue-modal-footer .btn-primary:hover {
    background: #3a5ce7;
}

/* 移动端 */
@media (max-width: 480px) {
    .tuyue-modal-card {
        padding: 20px 18px 18px;
        border-radius: 14px;
    }
    .tuyue-modal-header h2 {
        font-size: 17px;
    }
    .tuyue-modal-body {
        font-size: 13px;
    }
    .tuyue-modal-body .url {
        font-size: 15px;
        padding: 3px 12px;
    }
    .tuyue-modal-body .item .label {
        min-width: 48px;
        font-size: 12px;
    }
    .tuyue-modal-footer {
        flex-direction: column;
    }
    .tuyue-modal-footer .btn {
        width: 100%;
        justify-content: center;
        padding: 10px;
    }
}