.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 20px;
    width: 420px;
    max-width: 90%;
    padding: 30px;
    position: relative;
    animation: modalIn 0.2s ease;
}

@keyframes modalIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.modal-icon {
    width: 32px;
    height: 32px;
    background: #f0e9ff;
    color: #6d28d9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
}

/* 标签切换 */
.modal-tabs {
    display: flex;
    background: #f5f3ff;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    color: #666;
    font-weight: 500;
}

.tab-item.active {
    background: #fff;
    color: #6d28d9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* 表单 */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    background: #fafaff;
}

.form-input:focus {
    border-color: #7c6cff;
    background: #fff;
}

.form-tip {
    font-size: 12px;
    margin-bottom: 8px;
}

.form-tip.warn {
    color: #f59e0b;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-size: 13px;
}

.forget-pwd {
    color: #6d28d9;
    text-decoration: none;
}

/* 网盘类型按钮 */
.pan-type-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.pan-type-btn {
    padding: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.pan-type-btn.active {
    background: linear-gradient(135deg, #7c6cff, #a78bfa);
    color: #fff;
    border-color: transparent;
}
/* 我的资源列表 */
.my-resource-list {
    max-height: 400px;
    overflow-y: auto;
}

.my-resource-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0edff;
}

.my-resource-item:last-child {
    border-bottom: none;
}

.my-resource-info {
    flex: 1;
    overflow: hidden;
}

.my-resource-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-resource-meta {
    font-size: 12px;
    color: #999;
}

.my-resource-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 6px;
}